mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 16:36:56 +07:00
16 lines
241 B
Java
16 lines
241 B
Java
import org.jetbrains.annotations.Nullable;
|
|
|
|
class Doo {
|
|
|
|
static boolean isNotNull(@Nullable Object o) {
|
|
return o != null;
|
|
}
|
|
|
|
void foo(@Nullable String s) {
|
|
if (isNotNull(s)) {
|
|
System.out.println(s.length());
|
|
}
|
|
}
|
|
|
|
}
|