Cleanup (unnecessary copying)

This commit is contained in:
Roman Shevchenko
2016-09-22 17:33:02 +03:00
parent c95ba9968d
commit 6e90627dcb
@@ -434,7 +434,7 @@ public class JavaBuilder extends ModuleLevelBuilder {
JavaModuleIndex index = getJavaModuleIndex(context);
if (index.hasJavaModules(chunk.getModules())) {
// in Java 9, named modules are not allowed to read classes from the classpath
modulePath = ContainerUtil.newArrayList(classpath);
modulePath = classpath;
classpath = Collections.emptyList();
}
}