mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
Java: update tests to use inline expectations
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
public class Test {
|
||||
void f() throws Throwable {
|
||||
this.finalize(); // NON_COMPLIANT
|
||||
// NON_COMPLIANT
|
||||
this.finalize(); // $ Alert
|
||||
}
|
||||
|
||||
void f1() throws Throwable {
|
||||
|
||||
Reference in New Issue
Block a user