mirror of
https://github.com/github/codeql.git
synced 2026-04-29 10:45:15 +02:00
Merge pull request #10961 from tamasvajk/kotlin-abstract-collection-cast
Kotlin: Improve `java/abstract-to-concrete-cast` to handle `when` branches
This commit is contained in:
@@ -0,0 +1 @@
|
||||
Violations of Best Practice/Implementation Hiding/AbstractToConcreteCollection.ql
|
||||
@@ -0,0 +1,5 @@
|
||||
fun fn(m: MutableList<Int>) {
|
||||
if (m is ArrayList) {
|
||||
m.ensureCapacity(5)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user