Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8248f60 commit 1940024Copy full SHA for 1940024
3 files changed
java/ql/test/kotlin/library-tests/java-map-methods/test.expected
@@ -1,2 +1,5 @@
1
+diagnostics
2
+| file://:0:0:0:0 | Couldn't find a Java equivalent function to kotlin.String.<get-length> in java.lang.String |
3
+#select
4
| Integer |
5
| Object |
java/ql/test/kotlin/library-tests/java-map-methods/test.kt
@@ -1 +1,3 @@
fun test(m: Map<Int, Int>) = m.getOrDefault(1, 2)
+
+fun test2(s: String) = s.length
java/ql/test/kotlin/library-tests/java-map-methods/test.ql
@@ -1,4 +1,7 @@
import java
+import semmle.code.java.Diagnostics
from MethodAccess ma
select ma.getCallee().getAParameter().getType().toString()
6
7
+query predicate diagnostics(Diagnostic d) { any() }
0 commit comments