mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Java: Add missing private annotations.
This commit is contained in:
@@ -96,7 +96,7 @@ private predicate dispatchOrigin(ClassInstanceExpr cie, MethodAccess ma, Method
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Holds if `t` is a type that is relevant for dispatch flow. */
|
/** Holds if `t` is a type that is relevant for dispatch flow. */
|
||||||
predicate relevant(RefType t) {
|
private predicate relevant(RefType t) {
|
||||||
exists(ClassInstanceExpr cie | dispatchOrigin(cie, _, _) and t = cie.getConstructedType().getSourceDeclaration()) or
|
exists(ClassInstanceExpr cie | dispatchOrigin(cie, _, _) and t = cie.getConstructedType().getSourceDeclaration()) or
|
||||||
relevant(t.getErasure()) or
|
relevant(t.getErasure()) or
|
||||||
exists(RefType r | relevant(r) and t = r.getASourceSupertype()) or
|
exists(RefType r | relevant(r) and t = r.getASourceSupertype()) or
|
||||||
@@ -106,7 +106,7 @@ predicate relevant(RefType t) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** A node with a type that is relevant for dispatch flow. */
|
/** A node with a type that is relevant for dispatch flow. */
|
||||||
class RelevantNode extends Node {
|
private class RelevantNode extends Node {
|
||||||
RelevantNode() { relevant(this.getType()) }
|
RelevantNode() { relevant(this.getType()) }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user