We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ec98ab commit 079d774Copy full SHA for 079d774
1 file changed
java/ql/test/query-tests/StringReplaceAllWithNonRegex/Test.java
@@ -1,7 +1,7 @@
1
public class Test {
2
void f() {
3
String s1 = "test";
4
- s1 = s1.replaceAll("t", "x"); // $ Alert
5
- s1 = s1.replaceAll(".*", "x");
+ s1 = s1.replaceAll("t", "x"); // $ Alert // NON_COMPLIANT
+ s1 = s1.replaceAll(".*", "x"); // COMPLIANT
6
}
7
0 commit comments