Java: Added new query java/visible-for-testing-abuse

This commit is contained in:
Napalys Klicius
2025-08-06 10:53:59 +02:00
parent 2d9470ded8
commit 0c14d93bc6
10 changed files with 231 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
package packagetwo;
import packageone.*;
public class Source {
void f() {
int i = Annotated.f(); // NON_COMPLIANT
String s = Annotated.m; // NON_COMPLIANT
AnnotatedClass a = new AnnotatedClass(); // NON_COMPLIANT
String s1 = Annotated.m1; // COMPLIANT - same package
}
}