mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
infer nullity: treat instanceof as null check (IDEA-98153)
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
public class C {
|
||||
private int x;
|
||||
|
||||
public boolean equals(Object object) {
|
||||
if (object instanceof C) {
|
||||
if (((C)object).x == x) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user