Skip to content

Commit b5b252b

Browse files
committed
Convert test to inline expectations
1 parent ff2947a commit b5b252b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
Performance/StringReplaceAllWithNonRegex.ql
1+
query: Performance/StringReplaceAllWithNonRegex.ql
2+
postprocess: utils/test/InlineExpectationsTestQuery.ql
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
public class Test {
22
void f() {
33
String s1 = "test";
4-
s1 = s1.replaceAll("t", "x"); // NON_COMPLIANT
5-
s1 = s1.replaceAll(".*", "x"); // COMPLIANT
4+
s1 = s1.replaceAll("t", "x"); // $ Alert
5+
s1 = s1.replaceAll(".*", "x");
66
}
77
}

0 commit comments

Comments
 (0)