File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
java/ql/test/query-tests/Telemetry/UnsupportedExternalAPIs Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 33import java .util .HashMap ;
44import java .util .List ;
55import java .util .Map ;
6+ import java .util .concurrent .atomic .AtomicReference ;
67
78class ExternalApiUsage {
89 public static void main (String [] args ) {
@@ -14,6 +15,11 @@ public static void main(String[] args) {
1415
1516 long l = "foo" .length (); // not interesting
1617
18+ AtomicReference <String > ref = new AtomicReference <>(); // not supported
19+ ref .set ("foo" );
20+
21+ String .class .isAssignableFrom (Object .class ); // parameter with generic type
22+
1723 System .out .println (d );
1824 System .out .println (map );
1925 System .out .println (foo );
Original file line number Diff line number Diff line change 11| java.io.PrintStream#println(Object) | 3 |
2+ | java.lang.Class#isAssignableFrom(Class) | 1 |
23| java.lang.String#length() | 1 |
34| java.time.Duration#ofMillis(long) | 1 |
5+ | java.util.concurrent.atomic.AtomicReference#set(Object) | 1 |
You can’t perform that action at this time.
0 commit comments