You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: java/ql/consistency-queries/visibility.ql
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -19,5 +19,6 @@ where
19
19
// TODO: This ought to have visibility information
20
20
notm.getName()="<clinit>"and
21
21
count(visibility(m))!=1and
22
-
not(count(visibility(m))=2andvisibility(m)="public"andvisibility(m)="internal")// This is a reasonable result, since the JVM symbol is declared public, but Kotlin metadata flags it as internal
22
+
not(count(visibility(m))=2andvisibility(m)="public"andvisibility(m)="internal")and// This is a reasonable result, since the JVM symbol is declared public, but Kotlin metadata flags it as internal
23
+
not(count(visibility(m))=0andm.getName().matches("%$default"))// This is a reasonable result because the $default forwarder methods corresponding to private methods are package-private.
0 commit comments