We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b4b8649 + 48c37a2 commit a3ff835Copy full SHA for a3ff835
3 files changed
java/ql/lib/semmle/code/java/deadcode/DeadCode.qll
@@ -274,7 +274,7 @@ class DeadMethod extends Callable {
274
275
class RootdefCallable extends Callable {
276
RootdefCallable() {
277
- this.fromSource() and
+ this.getFile().isJavaSourceFile() and
278
not this.(Method).overridesOrInstantiates(_)
279
}
280
java/ql/test/kotlin/query-tests/UselessParameter/Test.kt
@@ -19,3 +19,6 @@ object O {}
19
fun C.fn() {}
20
fun C.Companion.fn() {}
21
fun O.fn() {}
22
+
23
+@Suppress("UNUSED_PARAMETER")
24
+fun fn2(a: Int) {}
java/ql/test/kotlin/query-tests/UselessParameter/UselessParameter.expected
@@ -1,2 +0,0 @@
1
-| Test.kt:11:8:11:18 | a | The parameter 'a' is never used. |
2
-| Test.kt:19:5:19:5 | <this> | The parameter '<this>' is never used. |
0 commit comments