File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
java/ql/test/query-tests/VisibleForTestingAbuse Expand file tree Collapse file tree 3 files changed +6
-5
lines changed 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 5
5
public class SourcePackage extends Annotated {
6
6
void f () {
7
7
AnnotatedClass a = new AnnotatedClass (); // COMPLIANT - same package
8
- String s1 = Annotated .m1 ; // NON_COMPLIANT
8
+ String s1 = Annotated .m1 ; // $ Alert
9
9
}
10
10
}
Original file line number Diff line number Diff line change 4
4
5
5
public class Source {
6
6
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
10
10
String s1 = Annotated .m1 ; // COMPLIANT - same package
11
11
}
12
12
}
You can’t perform that action at this time.
0 commit comments