mirror of
https://github.com/github/codeql.git
synced 2025-12-21 19:26:31 +01:00
remove redundant cast where the type is enforced by an equality comparison
This commit is contained in:
@@ -159,7 +159,7 @@ predicate badMethodAccessLockOrder(
|
||||
MethodAccess outerAccess, MethodAccess innerAccess, MethodAccess other
|
||||
) {
|
||||
exists(Synched outer, Synched inner |
|
||||
inner.(MethodAccess) = innerAccess and
|
||||
inner = innerAccess and
|
||||
inner = outer.getInnerSynch() and
|
||||
inner.getLockType() = outer.getLockType() and
|
||||
exists(Parameter p, int i | outer.(Method).getAParameter() = p and p.getPosition() = i |
|
||||
|
||||
Reference in New Issue
Block a user