mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-26 20:50:54 +07:00
15 lines
306 B
Java
15 lines
306 B
Java
// "Remove 'while' statement extracting side effects" "true-preview"
|
|
import org.jetbrains.annotations.Contract;
|
|
|
|
class X {
|
|
@Contract("_ -> true")
|
|
boolean test(Object obj) {
|
|
return true;
|
|
}
|
|
|
|
void doSmth(Object obj) {
|
|
if (obj != null) {
|
|
test(obj);
|
|
}
|
|
}
|
|
} |