Files
openide/java/java-tests/testData/inspection/dataFlow/fixture/ImmutableClassNonGetterMethod.java
T

13 lines
229 B
Java

@javax.annotation.concurrent.Immutable
interface Intf {
@org.jetbrains.annotations.Nullable String foo();
}
class Usage {
void bar(Intf i) {
if (i.foo() != null) {
System.out.println(i.foo().length());
}
}
}