Java: update tests to use inline expectations

This commit is contained in:
Jami Cogswell
2025-03-20 13:38:08 -04:00
parent 9a6e241f54
commit d9482ae334
2 changed files with 4 additions and 2 deletions

View File

@@ -1 +1,2 @@
Violations of Best Practice/Undesirable Calls/DoNotUseFinalize.ql
query: Violations of Best Practice/Undesirable Calls/DoNotUseFinalize.ql
postprocess: utils/test/InlineExpectationsTestQuery.ql

View File

@@ -1,6 +1,7 @@
public class Test {
void f() throws Throwable {
this.finalize(); // NON_COMPLIANT
// NON_COMPLIANT
this.finalize(); // $ Alert
}
void f1() throws Throwable {