mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 08:45:34 +07:00
dfa: don't suggest to replace reference qualifiers with null
This commit is contained in:
@@ -16,4 +16,10 @@ class Test {
|
||||
return foo;
|
||||
}
|
||||
|
||||
public void testDontReplaceQualifierWithNull(Object bar) {
|
||||
if (bar == null) {
|
||||
<warning descr="Method invocation 'bar.hashCode()' may produce 'java.lang.NullPointerException'">bar.hashCode()</warning>;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
+6
@@ -16,4 +16,10 @@ class Test {
|
||||
return foo;
|
||||
}
|
||||
|
||||
public void testDontReplaceQualifierWithNull(Object bar) {
|
||||
if (bar == null) {
|
||||
bar.hashCode();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user