Java: Performance tweaks

This commit is contained in:
Ian Lynagh
2022-02-08 14:53:05 +00:00
parent 83bba47fdb
commit 7ce9b160d0
116 changed files with 266 additions and 244 deletions

View File

@@ -13,5 +13,5 @@
import java
from RefType type
where type.getASupertype+().hasQualifiedName("com.example", "Class")
where type.getAStrictAncestor().hasQualifiedName("com.example", "Class")
select type

View File

@@ -9,5 +9,5 @@
import java
from ThrowStmt throw
where throw.getThrownExceptionType().getASupertype*().hasQualifiedName("com.example", "AnException")
where throw.getThrownExceptionType().getAnAncestor().hasQualifiedName("com.example", "AnException")
select throw, "Don't throw com.example.AnException"