mirror of
https://github.com/github/codeql.git
synced 2026-04-24 16:25:15 +02:00
Keep COMPLIANT and NON_COMPLIANT comments in test
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user