mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-04 20:30:42 +07:00
ObjectEqualsNull removed (superseded with DataFlowInspection)
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
// "Replace 'equals()' with '=='" "true"
|
||||
class Test {
|
||||
void foo(Object o) {
|
||||
if(o == null) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Replace '!equals()' with '!='" "true"
|
||||
class Test {
|
||||
void foo(Object o) {
|
||||
if(o != null) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Replace 'equals()' with '=='" "true"
|
||||
class Test {
|
||||
void foo(Object o) {
|
||||
if(o.e<caret>quals(null)) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Replace '!equals()' with '!='" "true"
|
||||
class Test {
|
||||
void foo(Object o) {
|
||||
if(!o.e<caret>quals(null)) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user