Files
Bartek Paciaandintellij-monorepo-bot ca5906a4f7 [ByteCodeViewer] Improve and simplify testing
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
2025-06-25 08:44:04 +00:00

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;
}
}