File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
java/ql/test/ext/TopJdkApis Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 1- | java.lang.String#valueOf(Object) |
2- | java.lang.Throwable#printStackTrace() |
3- | java.util.stream.Stream#collect(Collector) |
1+ | java.lang.String#valueOf(Object) | no manual model |
2+ | java.lang.Throwable#printStackTrace() | no manual model |
3+ | java.util.stream.Stream#collect(Collector) | no manual model |
Original file line number Diff line number Diff line change @@ -2,18 +2,20 @@ import java
22import semmle.code.java.dataflow.ExternalFlow
33import TopJdkApis
44
5- from string apiName
5+ from string apiName , string message
66where
77 // top jdk api names for which there is no callable
88 topJdkApiName ( apiName ) and
9- not hasCallable ( apiName )
9+ not hasCallable ( apiName ) and
10+ message = "no callable"
1011 or
1112 // top jdk api names for which there isn't a manual model
1213 exists ( TopJdkApi topApi |
1314 not topApi .hasManualMadModel ( ) and
1415 apiName =
1516 topApi .asCallable ( ) .getDeclaringType ( ) .getPackage ( ) + "." +
1617 topApi .asCallable ( ) .getDeclaringType ( ) .getSourceDeclaration ( ) + "#" +
17- topApi .asCallable ( ) .getName ( ) + paramsString ( topApi .asCallable ( ) )
18+ topApi .asCallable ( ) .getName ( ) + paramsString ( topApi .asCallable ( ) ) and
19+ message = "no manual model"
1820 )
19- select apiName order by apiName
21+ select apiName , message order by apiName
You can’t perform that action at this time.
0 commit comments