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 {
261261 NeutralCallable ( ) { neutralElement ( this , _) }
262262
263263 /**
264- * Holds if the neutral is auto generated.
264+ * Holds if the neutral is auto generated.
265265 */
266266 predicate isAutoGenerated ( ) { neutralElement ( this , "generated" ) }
267267
268+ /**
269+ * Holds if there exists a manual neutral that applies to `this`.
270+ */
271+ final predicate isManual ( ) { this .hasProvenance ( "manual" ) }
272+
268273 /**
269274 * Holds if the neutral has provenance `provenance`.
270275 */
Original file line number Diff line number Diff line change @@ -78,11 +78,11 @@ class TopJdkApi extends SummarizedCallableBase {
7878 }
7979
8080 /** Holds if this API has a manual summary model. */
81- private predicate hasManualSummary ( ) { this .( SummarizedCallable ) .hasProvenance ( false ) }
81+ private predicate hasManualSummary ( ) { this .( SummarizedCallable ) .isManual ( ) }
8282
8383 /** Holds if this API has a manual neutral model. */
8484 private predicate hasManualNeutral ( ) {
85- this .( FlowSummaryImpl:: Public:: NeutralCallable ) .hasProvenance ( false )
85+ this .( FlowSummaryImpl:: Public:: NeutralCallable ) .isManual ( )
8686 }
8787
8888 /** Holds if this API has a manual MaD model. */
You can’t perform that action at this time.
0 commit comments