Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5b252b commit 441c79eCopy full SHA for 441c79e
1 file changed
java/ql/src/Performance/StringReplaceAllWithNonRegex.ql
@@ -11,9 +11,8 @@
11
12
import java
13
14
-from MethodCall replaceAllCall
+from StringReplaceAllCall replaceAllCall
15
where
16
- replaceAllCall.getMethod().hasQualifiedName("java.lang", "String", "replaceAll") and
17
//only contains characters that could be a simple string
18
replaceAllCall.getArgument(0).(StringLiteral).getValue().regexpMatch("^[a-zA-Z0-9]+$")
19
select replaceAllCall,
0 commit comments