mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 20:39:40 +07:00
+ cleanup in JavaSimilarityFeaturesExtractor.visitReferenceExpression IJ-CR-98301 GitOrigin-RevId: 46f865e452bd8b4688321165a5e99c85271d36ea
51 lines
1.0 KiB
Java
51 lines
1.0 KiB
Java
public class A {
|
|
public static void main(String[] args) {
|
|
A a = new A();
|
|
if (a.foo() == 0) { }
|
|
|
|
if (a.foo() == 0) { }
|
|
|
|
if (a.foo() == 0) { //if with two lines
|
|
System.out.println(0);
|
|
System.err.print(1);
|
|
}
|
|
|
|
if (a.foo() == 0) { //if with one line
|
|
System.out.println(0);
|
|
}
|
|
|
|
if (a.foo() == 1) { //if with one line
|
|
System.out.println(1);
|
|
}
|
|
|
|
if (a.foo() == 0) { //if with one line with else with one line
|
|
System.out.println(0);
|
|
} else {
|
|
System.out.println(1);
|
|
}
|
|
|
|
if (a.foo() == 0) { //if with one line with else with one line
|
|
System.out.println(0);
|
|
} else {
|
|
System.out.println(1);
|
|
}
|
|
|
|
if (a.foo() == 0) { //if with one line with else with two lines
|
|
System.out.println(0);
|
|
} else {
|
|
System.out.println(1);
|
|
System.out.println(1);
|
|
}
|
|
while (a.foo() == 0) { //complex while
|
|
System.out.println(1);
|
|
System.out.println(1);
|
|
System.out.println(1);
|
|
System.out.println(1);
|
|
} }
|
|
|
|
public int foo() {
|
|
return 1;
|
|
}
|
|
|
|
|
|
} |