Skip to content

Commit c74eac4

Browse files
authored
Remove needless casts
1 parent cec91c4 commit c74eac4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java/ql/src/experimental/Security/CWE/CWE-400/ThreadResourceAbuse.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ class PauseThreadSink extends DataFlow::Node {
3535
/** A sanitizer for lessThan check. */
3636
class LessThanSanitizer extends DataFlow::BarrierGuard instanceof ComparisonExpr {
3737
override predicate checks(Expr e, boolean branch) {
38-
e = this.(ComparisonExpr).getLesserOperand() and
38+
e = super.getLesserOperand() and
3939
branch = true
4040
or
41-
e = this.(ComparisonExpr).getGreaterOperand() and
41+
e = super.getGreaterOperand() and
4242
branch = false
4343
}
4444
}

0 commit comments

Comments
 (0)