commit | 069f5761898a6f993c05bfc102ff0c12725a6a39 | [log] [tgz] |
---|---|---|
author | Mickael Istria <mistria@redhat.com> | Thu May 16 16:12:47 2019 +0200 |
committer | Mickael Istria <mistria@redhat.com> | Thu May 16 16:12:47 2019 +0200 |
tree | bc7257cfa8b9e5237b72c451aa9b09c4b40a6aad | |
parent | b45ea1b32dab553333618b11c1f0e51610791e77 [diff] |
Bug 546949 - Fix erroneous ContextObjectSupplier#hashCode Change-Id: I6bb92fe22c841bf34ab2495e4d587971eeab4f46 Signed-off-by: Mickael Istria <mistria@redhat.com>
diff --git a/bundles/org.eclipse.e4.core.contexts/src/org/eclipse/e4/core/internal/contexts/ContextObjectSupplier.java b/bundles/org.eclipse.e4.core.contexts/src/org/eclipse/e4/core/internal/contexts/ContextObjectSupplier.java index 870a616..bcf5a4e 100644 --- a/bundles/org.eclipse.e4.core.contexts/src/org/eclipse/e4/core/internal/contexts/ContextObjectSupplier.java +++ b/bundles/org.eclipse.e4.core.contexts/src/org/eclipse/e4/core/internal/contexts/ContextObjectSupplier.java
@@ -105,8 +105,8 @@ public int hashCode() { final int prime = 31; int hashRresult = 1; - hashRresult = prime * hashRresult + Objects.hashCode(context == null); - hashRresult = prime * hashRresult + Objects.hashCode(requestor == null); + hashRresult = prime * hashRresult + Objects.hashCode(context); + hashRresult = prime * hashRresult + Objects.hashCode(requestor); return hashRresult; }