diff --git a/java/java-analysis-impl/src/com/intellij/codeInspection/dataFlow/DfaMemoryStateImpl.java b/java/java-analysis-impl/src/com/intellij/codeInspection/dataFlow/DfaMemoryStateImpl.java index 7a3e49fdb587..651c4d4d09f6 100644 --- a/java/java-analysis-impl/src/com/intellij/codeInspection/dataFlow/DfaMemoryStateImpl.java +++ b/java/java-analysis-impl/src/com/intellij/codeInspection/dataFlow/DfaMemoryStateImpl.java @@ -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) {