Skip to content

Commit 90653ed

Browse files
Jami CogswellJami Cogswell
Jami Cogswell
authored and
Jami Cogswell
committed
Java: update tests to use inline expectations
1 parent 322d814 commit 90653ed

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
Violations of Best Practice/Undesirable Calls/DoNotUseFinalize.ql
1+
query: Violations of Best Practice/Undesirable Calls/DoNotUseFinalize.ql
2+
postprocess: utils/test/InlineExpectationsTestQuery.ql

java/ql/test/query-tests/DoNotUseFinalize/Test.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
public class Test {
22
void f() throws Throwable {
3-
this.finalize(); // NON_COMPLIANT
3+
// NON_COMPLIANT
4+
this.finalize(); // $ Alert
45
}
56

67
void f1() throws Throwable {

0 commit comments

Comments
 (0)