mirror of
https://github.com/github/codeql.git
synced 2026-04-28 18:25:24 +02:00
Add test to capture expected parameter format
This commit is contained in:
@@ -3,6 +3,7 @@ import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.atomic.AtomicReference;
|
||||
|
||||
class ExternalApiUsage {
|
||||
public static void main(String[] args) {
|
||||
@@ -14,6 +15,11 @@ class ExternalApiUsage {
|
||||
|
||||
long l = "foo".length(); // not interesting
|
||||
|
||||
AtomicReference<String> ref = new AtomicReference<>(); // not supported
|
||||
ref.set("foo");
|
||||
|
||||
String.class.isAssignableFrom(Object.class); // parameter with generic type
|
||||
|
||||
System.out.println(d);
|
||||
System.out.println(map);
|
||||
System.out.println(foo);
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
| java.io.PrintStream#println(Object) | 3 |
|
||||
| java.lang.Class#isAssignableFrom(Class) | 1 |
|
||||
| java.lang.String#length() | 1 |
|
||||
| java.time.Duration#ofMillis(long) | 1 |
|
||||
| java.util.concurrent.atomic.AtomicReference#set(Object) | 1 |
|
||||
|
||||
Reference in New Issue
Block a user