File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
java/ql/src/Metrics/Summaries Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
1
/** Provides classes and predicates for working with Top JDK APIs. */
2
2
3
3
import java
4
- private import semmle.code.java.dataflow.FlowSummary
5
4
private import semmle.code.java.dataflow.internal.FlowSummaryImpl as FlowSummaryImpl
6
5
private import semmle.code.java.dataflow.ExternalFlow
7
6
@@ -298,16 +297,18 @@ class TopJdkApi extends Callable {
298
297
299
298
/** Holds if this API has a manual summary model. */
300
299
private predicate hasManualSummary ( ) {
301
- exists ( SummarizedCallable sc | sc .asCallable ( ) = this and sc .hasManualModel ( ) )
300
+ exists ( FlowSummaryImpl:: Public:: SummarizedCallable sc |
301
+ sc .asCallable ( ) = this and sc .hasManualModel ( )
302
+ )
302
303
}
303
304
304
- /** Holds if this API has a manual neutral model. */
305
- private predicate hasManualNeutral ( ) {
306
- this .( FlowSummaryImpl:: Public:: NeutralCallable ) .hasManualModel ( )
305
+ /** Holds if this API has a manual neutral summary model. */
306
+ private predicate hasManualNeutralSummary ( ) {
307
+ this .( FlowSummaryImpl:: Public:: NeutralSummaryCallable ) .hasManualModel ( )
307
308
}
308
309
309
310
/** Holds if this API has a manual MaD model. */
310
- predicate hasManualMadModel ( ) { this .hasManualSummary ( ) or this .hasManualNeutral ( ) }
311
+ predicate hasManualMadModel ( ) { this .hasManualSummary ( ) or this .hasManualNeutralSummary ( ) }
311
312
/*
312
313
* Note: the following top JDK APIs are not modeled with MaD:
313
314
* `java.lang.Runnable#run()`: specialised lambda flow
You can’t perform that action at this time.
0 commit comments