Skip to content

Commit 48c37a2

Browse files
committed
Exclude .kt files from useless parameter query
1 parent 3507873 commit 48c37a2

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

java/ql/lib/semmle/code/java/deadcode/DeadCode.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ class DeadMethod extends Callable {
274274

275275
class RootdefCallable extends Callable {
276276
RootdefCallable() {
277-
this.fromSource() and
277+
this.getFile().isJavaSourceFile() and
278278
not this.(Method).overridesOrInstantiates(_)
279279
}
280280

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +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. |
3-
| Test.kt:24:9:24:14 | a | The parameter 'a' is never used. |

0 commit comments

Comments
 (0)