mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Java: Performance tweaks
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user