Refactoring: make "replace array equality ..." an inspection

This commit is contained in:
Mikhail Glukhikh
2017-12-18 18:23:29 +03:00
parent 33d94cd5e1
commit 756cb32eaf
19 changed files with 123 additions and 128 deletions
@@ -1,6 +0,0 @@
fun foo() {
val a = arrayOf("a", "b", "c")
val b = arrayOf("a", "b", "c")
if (<spot>Arrays.equals(a, b)</spot>) {
}
}
@@ -1,6 +0,0 @@
fun foo() {
val a = arrayOf("a", "b", "c")
val b = arrayOf("a", "b", "c")
if (<spot>a == b</spot>) {
}
}
@@ -1,5 +0,0 @@
<html>
<body>
This intention replace '==' or '!=' operator for arrays with 'Arrays.equals'
</body>
</html>