Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2017-10-10 07:45:33 +0000
committerAlexander Kurtakov2017-10-10 07:46:25 +0000
commit2bd564959cb6175878b84e34a158397509e54ea4 (patch)
tree0d72f36f7707f8326bd4e8d5761af92f416eb056 /bundles/org.eclipse.swt.tools/JNI Generation/org
parent927fb7921c3d90a8532093827fb04fc895179e35 (diff)
downloadeclipse.platform.swt-2bd564959cb6175878b84e34a158397509e54ea4.tar.gz
eclipse.platform.swt-2bd564959cb6175878b84e34a158397509e54ea4.tar.xz
eclipse.platform.swt-2bd564959cb6175878b84e34a158397509e54ea4.zip
Bug 525436 - Some foreach conversions
In swt.tools. Change-Id: I8c1fd577db2bf0e82dc1f2d926c63d0da7d3de52 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'bundles/org.eclipse.swt.tools/JNI Generation/org')
-rw-r--r--bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/ASTMethod.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/ASTMethod.java b/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/ASTMethod.java
index a8cd8ce367..ce87a233af 100644
--- a/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/ASTMethod.java
+++ b/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/ASTMethod.java
@@ -64,8 +64,7 @@ public ASTMethod(ASTClass declaringClass, String source, MethodDeclaration metho
paramTypes64 = new ASTType[parameters.size()];
this.parameters = new ASTParameter[paramTypes.length];
int i = 0;
- for (Iterator<SingleVariableDeclaration> iterator = parameters.iterator(); iterator.hasNext(); i++) {
- SingleVariableDeclaration param = iterator.next();
+ for (SingleVariableDeclaration param : parameters) {
paramTypes[i] = new ASTType(declaringClass.resolver, param.getType(), param.getExtraDimensions());
paramTypes64[i] = paramTypes[i];
this.parameters[i] = new ASTParameter(this, i, param.getName().getIdentifier());

Back to the top