mirror of
https://github.com/github/codeql.git
synced 2025-12-22 11:46:32 +01:00
Java: Add a test for cycles in the type hierarchy
This commit is contained in:
2
java/ql/test/library-tests/types/cycles/Test.java
Normal file
2
java/ql/test/library-tests/types/cycles/Test.java
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
public class Test {
|
||||||
|
}
|
||||||
6
java/ql/test/library-tests/types/cycles/cycles.expected
Normal file
6
java/ql/test/library-tests/types/cycles/cycles.expected
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
| BiFunction<? super Object,? super Object,? extends Object> |
|
||||||
|
| BiFunction<? super Object,? super Object,?> |
|
||||||
|
| Function<? super Object,? extends Object> |
|
||||||
|
| Function<? super Object,?> |
|
||||||
|
| Map<? extends Object,? extends Object> |
|
||||||
|
| Map<?,?> |
|
||||||
5
java/ql/test/library-tests/types/cycles/cycles.ql
Normal file
5
java/ql/test/library-tests/types/cycles/cycles.ql
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
import java
|
||||||
|
|
||||||
|
from RefType t
|
||||||
|
where t = t.getAStrictAncestor()
|
||||||
|
select t.toString()
|
||||||
Reference in New Issue
Block a user