mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-13 15:52:01 +07:00
[java-dfa] ControlFlowAnalyzer: do not compare PsiType by ==
GitOrigin-RevId: c24b6038b522eddefc8defbbddb59015bd90ae2e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
e72143205b
commit
528b777e4a
@@ -1930,7 +1930,7 @@ public class ControlFlowAnalyzer extends JavaElementVisitor {
|
||||
}
|
||||
addInstruction(new WrapDerivedVariableInstruction(DfTypes.typedObject(boxedType, Nullability.NOT_NULL), SpecialField.UNBOX));
|
||||
}
|
||||
else if (actualType != expectedType &&
|
||||
else if (!Objects.equals(actualType, expectedType) &&
|
||||
TypeConversionUtil.isPrimitiveAndNotNull(actualType) &&
|
||||
TypeConversionUtil.isPrimitiveAndNotNull(expectedType) &&
|
||||
TypeConversionUtil.isNumericType(actualType) &&
|
||||
|
||||
Reference in New Issue
Block a user