mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 15:50:53 +07:00
14 lines
332 B
Java
14 lines
332 B
Java
// "Replace '(random() ? foo() : bar()).equals(...)' with 'Objects.equals(random() ? foo() : bar(), ...)'" "true-preview"
|
|
|
|
import org.jetbrains.annotations.*;
|
|
|
|
class A{
|
|
void test(Object bar) {
|
|
if ((random() ? foo() : bar()).equa<caret>ls(bar)) {}
|
|
}
|
|
|
|
@Nullable Object foo();
|
|
@Nullable Object bar();
|
|
|
|
boolean random();
|
|
} |