mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix conditions for binary numeric promotion (IDEA-59944)
This commit is contained in:
+3
@@ -393,6 +393,9 @@ public class EvaluatorBuilderImpl implements EvaluatorBuilder {
|
||||
if (lType == null || rType == null) {
|
||||
return false;
|
||||
}
|
||||
if (!TypeConversionUtil.isNumericType(lType) || !TypeConversionUtil.isNumericType(rType)) {
|
||||
return false;
|
||||
}
|
||||
if (opType == JavaTokenType.EQEQ || opType == JavaTokenType.NE) {
|
||||
if (PsiType.NULL.equals(lType) || PsiType.NULL.equals(rType)) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user