Keep COMPLIANT and NON_COMPLIANT comments in test

This commit is contained in:
Owen Mansel-Chan
2025-03-27 11:40:53 +00:00
parent 04ec1d7830
commit e1c5517de7

View File

@@ -1,7 +1,7 @@
public class Test {
void f() {
String s1 = "test";
s1 = s1.replaceAll("t", "x"); // $ Alert
s1 = s1.replaceAll(".*", "x");
s1 = s1.replaceAll("t", "x"); // $ Alert // NON_COMPLIANT
s1 = s1.replaceAll(".*", "x"); // COMPLIANT
}
}