File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed
java/ql/test/ext/TopJdkApis Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -78,14 +78,10 @@ class TopJdkApi extends SummarizedCallableBase {
78
78
}
79
79
80
80
/** Holds if this API has a manual summary model. */
81
- private predicate hasManualSummary ( ) {
82
- this instanceof SummarizedCallable and
83
- this .( SummarizedCallable ) .hasProvenance ( false )
84
- }
81
+ private predicate hasManualSummary ( ) { this .( SummarizedCallable ) .hasProvenance ( false ) }
85
82
86
83
/** Holds if this API has a manual neutral model. */
87
84
private predicate hasManualNeutral ( ) {
88
- this instanceof FlowSummaryImpl:: Public:: NeutralCallable and
89
85
this .( FlowSummaryImpl:: Public:: NeutralCallable ) .hasProvenance ( false )
90
86
}
91
87
@@ -94,7 +90,7 @@ class TopJdkApi extends SummarizedCallableBase {
94
90
/*
95
91
* Note: the following top-100 APIs are not modeled with MaD:
96
92
* java.util.stream.Stream#collect(Collector) : handled separately on a case-by-case basis as it is too complex for MaD
97
- * java.lang.String#valueOf(Object) : a complex case that we haven't fully decided how to deal with
93
+ * java.lang.String#valueOf(Object) : also a complex case; an alias for `Object.toString`, except the dispatch is hidden
98
94
* java.lang.Throwable#printStackTrace() : should probably not be a general step, but there might be specialised queries that care
99
95
*/
100
96
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ from string apiName, string message
5
5
where
6
6
// top jdk api names for which there is no callable
7
7
topJdkApiName ( apiName ) and
8
- not exists ( Callable c | hasApiName ( c , apiName ) ) and
8
+ not hasApiName ( _ , apiName ) and
9
9
message = "no callable"
10
10
or
11
11
// top jdk api names for which there isn't a manual model
You can’t perform that action at this time.
0 commit comments