Skip to content

Commit 90653ed

Browse files
Jami CogswellJami Cogswell
authored andcommitted
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
Lines changed: 2 additions & 1 deletion
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

Lines changed: 2 additions & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy