else on the next line
as requested by http://confluence.jetbrains.net/display/JET/Code+Conventions+for+Java (sed is your friend)
This commit is contained in:
@@ -81,7 +81,8 @@ public class ForTestCompileRuntime {
|
||||
File file = stack.pop();
|
||||
if (file.isDirectory()) {
|
||||
stack.addAll(Arrays.asList(file.listFiles()));
|
||||
} else if (file.getName().endsWith(".java")) {
|
||||
}
|
||||
else if (file.getName().endsWith(".java")) {
|
||||
r.add(file);
|
||||
}
|
||||
}
|
||||
|
||||
+4
-2
@@ -81,12 +81,14 @@ abstract class ForTestCompileSomething {
|
||||
if (file.isFile()) {
|
||||
os.putNextEntry(new JarEntry(pop.getFirst()));
|
||||
Files.copy(file, os);
|
||||
} else if (file.isDirectory()) {
|
||||
}
|
||||
else if (file.isDirectory()) {
|
||||
for (File child : file.listFiles()) {
|
||||
String path = pop.getFirst().isEmpty() ? child.getName() : pop.getFirst() + "/" + child.getName();
|
||||
toCopy.add(new Pair<String, File>(path, child));
|
||||
}
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
throw new IllegalStateException();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user