mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
infer nullity: more pessimistic check: check variables first (IDEA-114630)
This commit is contained in:
+2
-2
@@ -12,12 +12,12 @@ class Test {
|
||||
}
|
||||
|
||||
String foo1(String str) {
|
||||
if (str == null);
|
||||
if (str == null) return "null";
|
||||
return (str);
|
||||
}
|
||||
|
||||
String foo2(String str) {
|
||||
if (str == null);
|
||||
if (str == null) return "null";
|
||||
return ((String)str);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user