mirror of
https://github.com/github/codeql.git
synced 2026-04-28 18:25:24 +02:00
Java: Added new query java/visible-for-testing-abuse
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
package packageone;
|
||||
|
||||
import packagetwo.Annotated;
|
||||
|
||||
public class SourcePackage extends Annotated {
|
||||
void f() {
|
||||
AnnotatedClass a = new AnnotatedClass(); // COMPLIANT - same package
|
||||
String s1 = Annotated.m1; // NON_COMPLIANT
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user