mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +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
|
|
}
|
|
}
|