JavaMapForEachInspection: don't report if argument is not single
#KT-39151 Fixed
This commit is contained in:
committed by
Yan Zhulanow
parent
7d3b28d75b
commit
2a36a8acac
@@ -0,0 +1,11 @@
|
||||
// PROBLEM: none
|
||||
// RUNTIME_WITH_FULL_JDK
|
||||
import java.util.concurrent.ConcurrentHashMap
|
||||
|
||||
fun test(map: ConcurrentHashMap<Int, String>) {
|
||||
map.<caret>forEach(1) { key, value ->
|
||||
foo(key, value)
|
||||
}
|
||||
}
|
||||
|
||||
fun foo(i: Int, s: String) {}
|
||||
Reference in New Issue
Block a user