mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't infer ->null contracts in scope of @MethodAreNonNullByDefault (addendum to IDEA-160991)
This commit is contained in:
+6
-1
@@ -24,10 +24,15 @@ class NotNullClass {
|
||||
return <warning descr="'null' is returned by the method declared as @MethodsAreNotNullByDefault">null</warning>;
|
||||
}
|
||||
|
||||
private Object privateFoo() {
|
||||
private String privateFoo() {
|
||||
return <warning descr="'null' is returned by the method declared as @MethodsAreNotNullByDefault">null</warning>;
|
||||
}
|
||||
|
||||
{
|
||||
String s2 = privateFoo();
|
||||
int i2 = s2.length();
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public Object foo2() {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user