mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
Java: accept more patterns (IJ-CR-144289)
GitOrigin-RevId: c0692f8c924b32988ec98aae86c1ad9b466cb45a
This commit is contained in:
committed by
intellij-monorepo-bot
parent
b847b27f2c
commit
c3189981f6
@@ -231,7 +231,7 @@ public class EqualsWhichDoesntCheckParameterClassInspection extends BaseInspecti
|
||||
.map(PsiSwitchLabelStatementBase::getCaseLabelElementList)
|
||||
.filter(Objects::nonNull)
|
||||
.flatMap(list -> Arrays.stream(list.getElements()))
|
||||
.anyMatch(element -> element instanceof PsiTypeTestPattern);
|
||||
.anyMatch(element -> element instanceof PsiPrimaryPattern);
|
||||
if (checksType) makeChecked();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user