preserve comments: merge sequential ifs

This commit is contained in:
Anna.Kozlova
2017-11-29 12:12:54 +01:00
parent 64364640a9
commit 7bccf6ebb2
4 changed files with 66 additions and 39 deletions
@@ -0,0 +1,11 @@
// "Merge sequential 'if's" "true"
class Test {
public static void main(String[] args) {
//c2
if (args.length == 1 || args.length == 2) {
return; // c1
}
System.out.println();
}
}
@@ -0,0 +1,13 @@
// "Merge sequential 'if's" "true"
class Test {
public static void main(String[] args) {
i<caret>f (args.length == 1) {
return; // c1
}
else if (args.length == 2) {
return; //c2
}
System.out.println();
}
}