mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
DfaMemoryStateImpl#shouldCompareByEquals: do not perform redundant conversion to PsiType
GitOrigin-RevId: f5923da63184c136a5750b514163155e2870efda
This commit is contained in:
committed by
intellij-monorepo-bot
parent
6e2f8fab60
commit
cbe2eb0d8f
+2
-1
@@ -361,7 +361,8 @@ public class DfaMemoryStateImpl implements DfaMemoryState {
|
||||
return false;
|
||||
}
|
||||
return !isNull(dfaLeft) && !isNull(dfaRight) &&
|
||||
DfaUtil.isComparedByEquals(getPsiType(dfaLeft)) && DfaUtil.isComparedByEquals(getPsiType(dfaRight));
|
||||
TypeConstraint.fromDfType(getDfType(dfaLeft)).isComparedByEquals() &&
|
||||
TypeConstraint.fromDfType(getDfType(dfaRight)).isComparedByEquals();
|
||||
}
|
||||
|
||||
private static boolean isSuperValue(DfaValue superValue, DfaValue subValue) {
|
||||
|
||||
Reference in New Issue
Block a user