File tree Expand file tree Collapse file tree
java/ql/test/query-tests/VisibleForTestingAbuse Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- Violations of Best Practice/Implementation Hiding/VisibleForTestingAbuse.ql
1+ query: Violations of Best Practice/Implementation Hiding/VisibleForTestingAbuse.ql
2+ postprocess: utils/test/InlineExpectationsTestQuery.ql
Original file line number Diff line number Diff line change 55public class SourcePackage extends Annotated {
66 void f () {
77 AnnotatedClass a = new AnnotatedClass (); // COMPLIANT - same package
8- String s1 = Annotated .m1 ; // NON_COMPLIANT
8+ String s1 = Annotated .m1 ; // $ Alert
99 }
1010}
Original file line number Diff line number Diff line change 44
55public class Source {
66 void f () {
7- int i = Annotated .f (); // NON_COMPLIANT
8- String s = Annotated .m ; // NON_COMPLIANT
9- AnnotatedClass a = new AnnotatedClass (); // NON_COMPLIANT
7+ int i = Annotated .f (); // $ Alert
8+ String s = Annotated .m ; // $ Alert
9+ AnnotatedClass a = new AnnotatedClass (); // $ Alert
1010 String s1 = Annotated .m1 ; // COMPLIANT - same package
1111 }
1212}
You can’t perform that action at this time.
0 commit comments