File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
lib/semmle/code/java/dataflow/internal Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -261,10 +261,15 @@ module Public {
261
261
NeutralCallable ( ) { neutralElement ( this , _) }
262
262
263
263
/**
264
- * Holds if the neutral is auto generated.
264
+ * Holds if the neutral is auto generated.
265
265
*/
266
266
predicate isAutoGenerated ( ) { neutralElement ( this , "generated" ) }
267
267
268
+ /**
269
+ * Holds if there exists a manual neutral that applies to `this`.
270
+ */
271
+ final predicate isManual ( ) { this .hasProvenance ( "manual" ) }
272
+
268
273
/**
269
274
* Holds if the neutral has provenance `provenance`.
270
275
*/
Original file line number Diff line number Diff line change @@ -78,11 +78,11 @@ class TopJdkApi extends SummarizedCallableBase {
78
78
}
79
79
80
80
/** Holds if this API has a manual summary model. */
81
- private predicate hasManualSummary ( ) { this .( SummarizedCallable ) .hasProvenance ( false ) }
81
+ private predicate hasManualSummary ( ) { this .( SummarizedCallable ) .isManual ( ) }
82
82
83
83
/** Holds if this API has a manual neutral model. */
84
84
private predicate hasManualNeutral ( ) {
85
- this .( FlowSummaryImpl:: Public:: NeutralCallable ) .hasProvenance ( false )
85
+ this .( FlowSummaryImpl:: Public:: NeutralCallable ) .isManual ( )
86
86
}
87
87
88
88
/** Holds if this API has a manual MaD model. */
You can’t perform that action at this time.
0 commit comments