import org.jetbrains.annotations.NotNull;
class Foo {
public int getValue() {
return 5;
}
public void nullcheck() {
Integer x = getValue();
System.out.println(x == null ? "NULL" : Integer.toHexString(x));
}
}
class Bar {
@NotNull
public Integer getValue() {
return 5;
}
public void nullcheck() {
Integer x = getValue();
System.out.println(x == null ? "NULL" : Integer.toHexString(x));
}
}