@@ -520,8 +520,7 @@ private class NonPublicMethodCharacteristic extends CharacteristicsImpl::Uninter
520
520
NonPublicMethodCharacteristic ( ) { this = "non-public method" }
521
521
522
522
override predicate appliesToEndpoint ( Endpoint e ) {
523
- e .getExtensibleType ( ) = "sinkModel" and
524
- not e .getCallable ( ) .isPublic ( )
523
+ exists ( Callable c | c = e .getCallable ( ) | not c .isPublic ( ) )
525
524
}
526
525
}
527
526
@@ -543,7 +542,6 @@ private class OtherArgumentToModeledMethodCharacteristic extends Characteristics
543
542
}
544
543
545
544
override predicate appliesToEndpoint ( Endpoint e ) {
546
- e .getExtensibleType ( ) = "sinkModel" and
547
545
not ApplicationCandidatesImpl:: isSink ( e , _, _) and
548
546
exists ( CallArgument otherSink |
549
547
ApplicationCandidatesImpl:: isSink ( otherSink , _, "manual" ) and
@@ -562,7 +560,6 @@ private class FunctionValueCharacteristic extends CharacteristicsImpl::LikelyNot
562
560
FunctionValueCharacteristic ( ) { this = "function value" }
563
561
564
562
override predicate appliesToEndpoint ( Endpoint e ) {
565
- e .getExtensibleType ( ) = "sinkModel" and
566
563
e .asNode ( ) .asExpr ( ) instanceof FunctionalExpr
567
564
}
568
565
}
@@ -579,7 +576,6 @@ private class CannotBeTaintedCharacteristic extends CharacteristicsImpl::LikelyN
579
576
CannotBeTaintedCharacteristic ( ) { this = "cannot be tainted" }
580
577
581
578
override predicate appliesToEndpoint ( Endpoint e ) {
582
- e .getExtensibleType ( ) = "sinkModel" and
583
579
not this .isKnownOutNodeForStep ( e )
584
580
}
585
581
0 commit comments