mirror of
https://github.com/github/codeql.git
synced 2026-02-12 13:11:20 +01:00
9 lines
237 B
Java
9 lines
237 B
Java
public class Test {
|
|
void f() {
|
|
String s1 = "test";
|
|
s1 = s1.replaceAll("t", "x"); // $ Alert // NON_COMPLIANT
|
|
s1 = s1.replaceAll(".*", "x"); // COMPLIANT
|
|
s1 = s1.replace("t", "x"); // COMPLIANT
|
|
}
|
|
}
|