dfa: don't suggest to replace reference qualifiers with null

This commit is contained in:
peter
2014-04-09 12:56:20 +02:00
parent 73850cbd73
commit 7ddbfd5eed
3 changed files with 13 additions and 1 deletions
@@ -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>;
}
}
}
@@ -16,4 +16,10 @@ class Test {
return foo;
}
public void testDontReplaceQualifierWithNull(Object bar) {
if (bar == null) {
bar.hashCode();
}
}
}