未验证 提交 f230462f 编写于 作者: J Jesse Glick

#4254 incorrectly converted AntClassLoader.loadResource to a Java 5 for-loop.

上级 67e19919
......@@ -744,12 +744,13 @@ public class AntClassLoader extends ClassLoader implements SubBuildListener {
private InputStream loadResource(String name) {
// we need to search the components of the path to see if we can
// find the class we want.
InputStream stream = null;
for (File pathComponent : pathComponents) {
stream = getResourceStream(pathComponent, name);
InputStream stream = getResourceStream(pathComponent, name);
if (stream != null) {
return stream;
}
}
return stream;
return null;
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册