Remove Class cast

This commit is contained in:
edvraa
2021-04-27 20:26:29 +03:00
parent ade238307f
commit 5eb96c1e45

View File

@@ -39,7 +39,7 @@ class RegexSink extends DataFlow::ExprNode {
m.getDeclaringType().hasQualifiedName("org.apache.commons.lang3", "RegExUtils") and
(
ma.getArgument(1) = this.asExpr() and
m.getParameterType(1).(Class) instanceof TypeString and
m.getParameterType(1) instanceof TypeString and
m.hasName([
"removeAll", "removeFirst", "removePattern", "replaceAll", "replaceFirst",
"replacePattern"