Skip to content

Commit 1e62b48

Browse files
authored
Merge pull request #8241 from igfoo/igfoo/stats4
Java: Update stats and make some performance tweaks
2 parents 958fd9b + 0bf1370 commit 1e62b48

File tree

118 files changed

+24249
-26472
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+24249
-26472
lines changed

java/ql/examples/snippets/extend_class.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
import java
1414

1515
from RefType type
16-
where type.getASupertype+().hasQualifiedName("com.example", "Class")
16+
where type.getAStrictAncestor().hasQualifiedName("com.example", "Class")
1717
select type

java/ql/examples/snippets/throw_exception.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
import java
1010

1111
from ThrowStmt throw
12-
where throw.getThrownExceptionType().getASupertype*().hasQualifiedName("com.example", "AnException")
12+
where throw.getThrownExceptionType().getAnAncestor().hasQualifiedName("com.example", "AnException")
1313
select throw, "Don't throw com.example.AnException"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
category: feature
3+
---
4+
* Added `hasDescendant(RefType anc, Type sub)`
5+
* Added `RefType.getADescendant()`
6+
* Added `RefType.getAStrictAncestor()`

0 commit comments

Comments
 (0)