mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
oror is associative operation as well
This commit is contained in:
+2
-1
@@ -50,7 +50,8 @@ public class ReplaceExpressionUtil {
|
||||
return ((CompositeElement)oldParent).getChildRole(oldExpr) != ChildRole.LOPERAND &&
|
||||
opType != JavaTokenType.PLUS &&
|
||||
opType != JavaTokenType.ASTERISK &&
|
||||
opType != JavaTokenType.ANDAND;
|
||||
opType != JavaTokenType.ANDAND &&
|
||||
opType != JavaTokenType.OROR;
|
||||
}
|
||||
else if (i == JavaElementType.INSTANCE_OF_EXPRESSION) {
|
||||
return priority < parentPriority;
|
||||
|
||||
Reference in New Issue
Block a user