mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-01 09:04:15 +07:00
GitOrigin-RevId: b86e3b4e32e589fae23052542ebd0435b7342a4b
11 lines
330 B
Java
11 lines
330 B
Java
import org.jetbrains.annotations.Contract;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
class Foo {
|
|
@Contract(pure = true, value = "null -> fail; true -> true; false -> false")
|
|
private static boolean nonNullBoolean(@Nullable Boolean value) {
|
|
if (value == null) throw new IllegalArgumentException();
|
|
return value;
|
|
}
|
|
}
|