Skip to content

Commit 1c2807e

Browse files
committed
Java: Add missing private annotations.
1 parent 8391685 commit 1c2807e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java/ql/src/semmle/code/java/dispatch/DispatchFlow.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ private predicate dispatchOrigin(ClassInstanceExpr cie, MethodAccess ma, Method
9696
}
9797

9898
/** Holds if `t` is a type that is relevant for dispatch flow. */
99-
predicate relevant(RefType t) {
99+
private predicate relevant(RefType t) {
100100
exists(ClassInstanceExpr cie | dispatchOrigin(cie, _, _) and t = cie.getConstructedType().getSourceDeclaration()) or
101101
relevant(t.getErasure()) or
102102
exists(RefType r | relevant(r) and t = r.getASourceSupertype()) or
@@ -106,7 +106,7 @@ predicate relevant(RefType t) {
106106
}
107107

108108
/** A node with a type that is relevant for dispatch flow. */
109-
class RelevantNode extends Node {
109+
private class RelevantNode extends Node {
110110
RelevantNode() { relevant(this.getType()) }
111111
}
112112

0 commit comments

Comments
 (0)