Skip to content

Commit 5eb96c1

Browse files
author
edvraa
committed
Remove Class cast
1 parent ade2383 commit 5eb96c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/ql/src/experimental/Security/CWE/CWE-730/RegexInjection.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class RegexSink extends DataFlow::ExprNode {
3939
m.getDeclaringType().hasQualifiedName("org.apache.commons.lang3", "RegExUtils") and
4040
(
4141
ma.getArgument(1) = this.asExpr() and
42-
m.getParameterType(1).(Class) instanceof TypeString and
42+
m.getParameterType(1) instanceof TypeString and
4343
m.hasName([
4444
"removeAll", "removeFirst", "removePattern", "replaceAll", "replaceFirst",
4545
"replacePattern"

0 commit comments

Comments
 (0)