lkishalmi commented on code in PR #7097:
URL: https://github.com/apache/netbeans/pull/7097#discussion_r1518724868
##########
ide/languages.hcl/src/org/netbeans/modules/languages/hcl/ast/HCLArithmeticOperation.java:
##########
@@ -61,51 +61,27 @@ public String toString() {
}
}
- public final Operator op;
-
- public HCLArithmeticOperation(Operator op) {
- this.op = op;
- }
-
- public final static class Binary extends HCLArithmeticOperation {
- public final HCLExpression left;
- public final HCLExpression right;
-
- public Binary(Operator op, HCLExpression left, HCLExpression right) {
- super(op);
- this.left = left;
- this.right = right;
- }
-
+ public record Binary(Operator op, HCLExpression left, HCLExpression right)
implements HCLArithmeticOperation {
@Override
public String asString() {
return left.toString() + op.toString() + right.toString();
- }
+ }
Review Comment:
Thanks! Fixed,editor settings changed...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists