diff options
author | Carsten Hammer | 2020-06-07 17:40:23 +0000 |
---|---|---|
committer | Carsten Hammer | 2020-06-07 17:40:23 +0000 |
commit | 5c995ff1fd049aa73433c98281cd8614ada7f3c0 (patch) | |
tree | 6c1420393713c0b448bac2641e40673e2aeff5ef | |
parent | 905659788d772f31cdc0ecbbd9911476491a2b75 (diff) | |
download | eclipse.platform.swt-5c995ff1fd049aa73433c98281cd8614ada7f3c0.tar.gz eclipse.platform.swt-5c995ff1fd049aa73433c98281cd8614ada7f3c0.tar.xz eclipse.platform.swt-5c995ff1fd049aa73433c98281cd8614ada7f3c0.zip |
Fix comparison for values above 127
Change-Id: If6a8dda2e40c19307fb21a0d8cdce45a31e93b28
Signed-off-by: Carsten Hammer <carsten.hammer@t-online.de>
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/BusyIndicator.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/BusyIndicator.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/BusyIndicator.java index c100fb7500..ee4b668ff6 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/BusyIndicator.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/BusyIndicator.java @@ -14,6 +14,8 @@ package org.eclipse.swt.custom; +import java.util.*; + import org.eclipse.swt.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.widgets.*; @@ -74,7 +76,7 @@ public class BusyIndicator { shells = display.getShells(); for (Shell shell : shells) { Integer id = (Integer)shell.getData(BUSYID_NAME); - if (id == busyId) { + if (Objects.equals(id, busyId)) { setCursorAndId(shell, null, null); } } |