diff options
Diffstat (limited to 'bundles/org.eclipse.swt.tools/Mac Generation/org/eclipse/swt/tools/internal/MacGenerator.java')
-rw-r--r-- | bundles/org.eclipse.swt.tools/Mac Generation/org/eclipse/swt/tools/internal/MacGenerator.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt.tools/Mac Generation/org/eclipse/swt/tools/internal/MacGenerator.java b/bundles/org.eclipse.swt.tools/Mac Generation/org/eclipse/swt/tools/internal/MacGenerator.java index 58adc94850..2c9e7c2211 100644 --- a/bundles/org.eclipse.swt.tools/Mac Generation/org/eclipse/swt/tools/internal/MacGenerator.java +++ b/bundles/org.eclipse.swt.tools/Mac Generation/org/eclipse/swt/tools/internal/MacGenerator.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2018 IBM Corporation and others. + * Copyright (c) 2008, 2017 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -50,7 +50,8 @@ static void list(File path, ArrayList<String> list) { if (path == null) return; File[] frameworks = path.listFiles(); if (frameworks == null) return; - for (File file : frameworks) { + for (int i = 0; i < frameworks.length; i++) { + File file = frameworks[i]; String name = file.getName(); int index = name.lastIndexOf("."); if (index != -1) { @@ -673,7 +674,8 @@ void copyClassMethodsDown(final Map<String, Object[]> classes) { ArrayList<Node> methods = (ArrayList<Node>)clazz[1]; Object[] superclass = classes.get(getSuperclassName(node)); if (superclass != null) { - for (Node method : ((ArrayList<Node>) superclass[1])) { + for (Iterator<Node> iterator2 = ((ArrayList<Node>)superclass[1]).iterator(); iterator2.hasNext();) { + Node method = iterator2.next(); if (isStatic(method)) { methods.add(method); } |