Add inspection to replace Java Map.forEach with Kotlin's forEach
#KT-17278 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
9c674cb7c3
commit
1a818970c3
@@ -0,0 +1,9 @@
|
||||
import java.util.HashMap
|
||||
|
||||
internal class Test {
|
||||
fun test(map: HashMap<String, String>) {
|
||||
map.forEach { (key, value) -> foo(key, value) }
|
||||
}
|
||||
|
||||
fun foo(key: String, value: String) {}
|
||||
}
|
||||
Reference in New Issue
Block a user