KT-11425: convert !a.equals(b) to a != b
(cherry picked from commit 56c7786)
This commit is contained in:
committed by
Mikhail Glukhikh
parent
2850a7898d
commit
f309021c9f
+3
@@ -0,0 +1,3 @@
|
||||
// INTENTION_TEXT: Replace with '!=' operator
|
||||
|
||||
val x = !2.equals<caret>(3)
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
// INTENTION_TEXT: Replace with '!=' operator
|
||||
|
||||
val x = 2 != 3
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
// INTENTION_TEXT: Replace with '!=' operator
|
||||
|
||||
val x = !(2.equals<caret>(3))
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
// INTENTION_TEXT: Replace with '!=' operator
|
||||
|
||||
val x = 2 != 3
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
// INTENTION_TEXT: Replace with '==' operator
|
||||
|
||||
val x = !(2.equals<caret>(3) && 4.equals(5))
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
// INTENTION_TEXT: Replace with '==' operator
|
||||
|
||||
val x = !(2 == 3 && 4.equals(5))
|
||||
Reference in New Issue
Block a user