mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
Intention to convert a.equals(b) to Objects.equals(a, b) (IDEA-143925)
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
import java.lang.String;
|
||||
|
||||
class X {
|
||||
void m() {
|
||||
|
||||
if ("asd".intern().equa<caret>ls(String.valueOf("qwe"))) {
|
||||
// do something
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
import java.lang.String;
|
||||
|
||||
class X {
|
||||
void m() {
|
||||
|
||||
if (java.util.Objects.equals("asd".intern(), String.valueOf("qwe"))) {
|
||||
// do something
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
class X {
|
||||
|
||||
void m(X x2) {
|
||||
if (equa<caret>ls(x2, x2, x2)) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
boolean equals(X x, X x2, X x3) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
class X {
|
||||
void m() {
|
||||
|
||||
if ("asd".equa<caret>ls("qwe")) {
|
||||
// do something
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
class X {
|
||||
void m() {
|
||||
|
||||
if (java.util.Objects.equals("asd", "qwe")) {
|
||||
// do something
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user