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 c7cb885 commit e59487aCopy full SHA for e59487a
1 file changed
java/ql/lib/semmle/code/java/controlflow/Guards.qll
@@ -213,13 +213,13 @@ class Guard extends ExprParent {
213
or
214
exists(PatternCase pc | this = pc |
215
pc.getSelectorExpr() = testedExpr and
216
- testedType = pc.getPattern().getType()
+ testedType = pc.getUniquePattern().getType()
217
)
218
) and
219
(
220
if
221
exists(RecordPatternExpr rpe |
222
- rpe = [this.(InstanceOfExpr).getPattern(), this.(PatternCase).getPattern()]
+ rpe = [this.(InstanceOfExpr).getPattern(), this.(PatternCase).getAPattern()]
223
|
224
not rpe.isUnrestricted()
225
0 commit comments