Refactoring: make "replace array equality ..." an inspection
This commit is contained in:
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
// WITH_RUNTIME
|
||||
// FIX: Replace '==' with 'contentEquals'
|
||||
fun foo() {
|
||||
val a = charArrayOf('a', 'b', 'c')
|
||||
val b = charArrayOf('a', 'b', 'c')
|
||||
if (a.contentEquals(b)) {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user