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 3
3
import java .util .HashMap ;
4
4
import java .util .List ;
5
5
import java .util .Map ;
6
+ import java .util .concurrent .atomic .AtomicReference ;
6
7
7
8
class ExternalApiUsage {
8
9
public static void main (String [] args ) {
@@ -14,6 +15,11 @@ public static void main(String[] args) {
14
15
15
16
long l = "foo" .length (); // not interesting
16
17
18
+ AtomicReference <String > ref = new AtomicReference <>(); // not supported
19
+ ref .set ("foo" );
20
+
21
+ String .class .isAssignableFrom (Object .class ); // parameter with generic type
22
+
17
23
System .out .println (d );
18
24
System .out .println (map );
19
25
System .out .println (foo );
Original file line number Diff line number Diff line change 1
1
| java.io.PrintStream#println(Object) | 3 |
2
+ | java.lang.Class#isAssignableFrom(Class) | 1 |
2
3
| java.lang.String#length() | 1 |
3
4
| 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