mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-02 20:28:08 +07:00
9 lines
253 B
Java
9 lines
253 B
Java
import org.jetbrains.annotations.Contract;
|
|
|
|
class C {
|
|
@Contract("null, _ -> false")
|
|
public static boolean checkSomething(Object o1, Object <caret>o2) {
|
|
if(!(o1 instanceof String)) return false;
|
|
return Math.random() > 0.5;
|
|
}
|
|
} |