提交 e5166f7f 编写于 作者: R Raihaan Shouhell

Foreach loops

上级 144642ca
......@@ -905,10 +905,10 @@ public class Util {
}
byte[] bytes = new String(new int[] { codePoint }, 0, 1).getBytes(StandardCharsets.UTF_8);
for(int j=0;j<bytes.length;j++) {
for (byte aByte : bytes) {
out.append('%');
out.append(toDigit((bytes[j] >> 4) & 0xF));
out.append(toDigit(bytes[j] & 0xF));
out.append(toDigit((aByte >> 4) & 0xF));
out.append(toDigit(aByte & 0xF));
}
if(Character.charCount(codePoint) > 1) {
......
......@@ -365,9 +365,9 @@ public class AntClassLoader extends ClassLoader implements SubBuildListener {
if (classpath != null) {
Path actualClasspath = classpath.concatSystemClasspath("ignore");
String[] pathElements = actualClasspath.list();
for (int i = 0; i < pathElements.length; ++i) {
for (String pathElement : pathElements) {
try {
addPathElement(pathElements[i]);
addPathElement(pathElement);
} catch (BuildException e) {
// ignore path elements which are invalid
// relative to the project
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册