mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-06 17:56:55 +07:00
Make all tests have two variants: with and without debug info. Also, move bytecode fixtures out of BytecodeLineMappingTest because it adds too much noise there. Move it to the newly created testData directory instead. GitOrigin-RevId: 1b44b118d470ace068774d9714eafc2704119e86
36 lines
596 B
Java
36 lines
596 B
Java
package simple3;
|
|
|
|
public class Main {
|
|
String method1(boolean value) {
|
|
if (value == true) {
|
|
return "baz";
|
|
}
|
|
return "baz";
|
|
}
|
|
|
|
String method2(boolean value) {
|
|
if (value == Boolean.TRUE) {
|
|
return "bar";
|
|
}
|
|
return "baz";
|
|
}
|
|
|
|
String method3(boolean value) {
|
|
if (value == Boolean.FALSE) {
|
|
return "bar";
|
|
}
|
|
return "baz";
|
|
}
|
|
|
|
String method(boolean value) {
|
|
if (Boolean.TRUE.equals(returnsBool(value))) {
|
|
return "foo";
|
|
}
|
|
return "baz";
|
|
}
|
|
|
|
public Boolean returnsBool(boolean value) {
|
|
return Math.random() > 0.5;
|
|
}
|
|
}
|