mirror of
https://github.com/github/codeql.git
synced 2026-05-02 12:15:17 +02:00
Align tests with new query structure
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import java.time.Duration;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
class ExternalApiUsage {
|
||||
public static void main(String[] args) {
|
||||
List<?> foo = new ArrayList(); // already supported
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
map.put("foo", new Object());
|
||||
|
||||
Duration d = java.time.Duration.ofMillis(1000); // not supported
|
||||
|
||||
long l = "foo".length(); // not interesting
|
||||
|
||||
System.out.println(d);
|
||||
System.out.println(map);
|
||||
System.out.println(foo);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user