mirror of
https://github.com/github/codeql.git
synced 2026-04-29 10:45:15 +02:00
Java: Added new query java/visible-for-testing-abuse
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user