diff options
author | Alexander Kurtakov | 2016-09-30 11:04:06 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2016-09-30 11:04:06 +0000 |
commit | ac147934c46766d99b0c52a5266a31e6c22c2b57 (patch) | |
tree | d1bb79ed13604cfd1200db9c8bfaf08bfda0c56d /bundles/org.eclipse.swt/Eclipse SWT Program | |
parent | 089538beb4307b59253536550f541cc89e1ad12b (diff) | |
download | eclipse.platform.swt-ac147934c46766d99b0c52a5266a31e6c22c2b57.tar.gz eclipse.platform.swt-ac147934c46766d99b0c52a5266a31e6c22c2b57.tar.xz eclipse.platform.swt-ac147934c46766d99b0c52a5266a31e6c22c2b57.zip |
Bug 502848 - Don't use display to calculate Program hashCode
There are cases when display can be null (not inited and etc.) and it's
also weird to use it as which display it runs on doesn't make two
programs different.
Change-Id: I8d7d62ae3d39a98e7bf80aeadd172555ddf9e597
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Program')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT Program/gtk/org/eclipse/swt/program/Program.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Program/gtk/org/eclipse/swt/program/Program.java b/bundles/org.eclipse.swt/Eclipse SWT Program/gtk/org/eclipse/swt/program/Program.java index afae740d1f..9bb8bf1a68 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Program/gtk/org/eclipse/swt/program/Program.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Program/gtk/org/eclipse/swt/program/Program.java @@ -557,7 +557,7 @@ public String getName() { */ @Override public int hashCode() { - return name.hashCode() ^ command.hashCode() ^ display.hashCode(); + return name.hashCode() ^ command.hashCode(); } /** |