Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2017-10-10 07:50:10 +0000
committerAlexander Kurtakov2017-10-10 08:23:13 +0000
commit8908997c9bc5c7a7eb15fc71b818ff2171370855 (patch)
tree7342f99896a269b4637363d90cbd9b7734fc9176 /bundles/org.eclipse.swt/Eclipse SWT
parent2bd564959cb6175878b84e34a158397509e54ea4 (diff)
downloadeclipse.platform.swt-8908997c9bc5c7a7eb15fc71b818ff2171370855.tar.gz
eclipse.platform.swt-8908997c9bc5c7a7eb15fc71b818ff2171370855.tar.xz
eclipse.platform.swt-8908997c9bc5c7a7eb15fc71b818ff2171370855.zip
Bug 525436 - Some foreach conversions
In SWT itself - shared and gtk port. Change-Id: I94f52f5e4424af4294ec79dba1018a8a018599ed Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java
index 9c7a9150bc..24c15dc50b 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java
@@ -1138,11 +1138,9 @@ private int findLatinKeyGroup () {
// group with maximum keys count is Latin
int max_keys_count = 0;
- Iterator<Map.Entry<Integer, Integer>> it = groupKeysCount.entrySet ().iterator ();
- while (it.hasNext ()) {
- Map.Entry<Integer, Integer> entry = it.next ();
- Integer group = (Integer) entry.getKey ();
- Integer keys_count = (Integer) entry.getValue ();
+ for (Map.Entry<Integer, Integer> entry : groupKeysCount.entrySet()) {
+ Integer group = entry.getKey ();
+ Integer keys_count = entry.getValue ();
if (keys_count > max_keys_count) {
result = group;
max_keys_count = keys_count;

Back to the top