Skip to content

Commit 079d774

Browse files
committed
Keep COMPLIANT and NON_COMPLIANT comments in test
1 parent 7ec98ab commit 079d774

File tree

1 file changed

+2
-2
lines changed
  • java/ql/test/query-tests/StringReplaceAllWithNonRegex

1 file changed

+2
-2
lines changed
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"); // $ Alert
5-
s1 = s1.replaceAll(".*", "x");
4+
s1 = s1.replaceAll("t", "x"); // $ Alert // NON_COMPLIANT
5+
s1 = s1.replaceAll(".*", "x"); // COMPLIANT
66
}
77
}

0 commit comments

Comments
 (0)