diff options
Diffstat (limited to 'test/core/src/lombok')
-rw-r--r-- | test/core/src/lombok/RunTestsViaEcj.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/core/src/lombok/RunTestsViaEcj.java b/test/core/src/lombok/RunTestsViaEcj.java index 6137de49..60a6e92a 100644 --- a/test/core/src/lombok/RunTestsViaEcj.java +++ b/test/core/src/lombok/RunTestsViaEcj.java @@ -239,11 +239,6 @@ public class RunTestsViaEcj extends AbstractRunTests { private FileSystem createFileSystem(File file, int minVersion) { List<String> classpath = new ArrayList<String>(); - for (Iterator<String> i = classpath.iterator(); i.hasNext();) { - if (FileSystem.getClasspath(i.next(), "UTF-8", null) == null) { - i.remove(); - } - } if (new File("bin/main").exists()) classpath.add("bin/main"); classpath.add("dist/lombok.jar"); classpath.add("build/teststubs"); @@ -255,6 +250,11 @@ public class RunTestsViaEcj extends AbstractRunTests { if (!fn.substring(fn.length() - 4).toLowerCase().equals(".jar")) continue; classpath.add("lib/test/" + fn); } + for (Iterator<String> i = classpath.iterator(); i.hasNext();) { + if (FileSystem.getClasspath(i.next(), "UTF-8", null) == null) { + i.remove(); + } + } return new FileSystem(classpath.toArray(new String[0]), new String[] {file.getAbsolutePath()}, "UTF-8"); } |