tkobayas commented on code in PR #5907:
URL: 
https://github.com/apache/incubator-kie-drools/pull/5907#discussion_r1593986554


##########
drools-drl/drools-drl-parser/src/main/java/org/drools/drl/parser/antlr4/DRLVisitorImpl.java:
##########
@@ -803,12 +803,19 @@ public AccumulateDescr 
visitFromAccumulate(DRLParser.FromAccumulateContext ctx)
     @Override
     public AccumulateDescr.AccumulateFunctionCallDescr 
visitAccumulateFunction(DRLParser.AccumulateFunctionContext ctx) {
         String function = ctx.drlIdentifier().getText();
-        String bind = ctx.label() == null ? null : 
ctx.label().drlIdentifier().getText();
+        String bind = null;
+        boolean unify = false;
+        if (ctx.label() != null) {

Review Comment:
   Ahh, sorry, I wrote my previous post "ternary operators with 2 lines" before 
I noticed that @gitgabrio had edited his first post (which missed ctx.label() 
null-check before the edit). Please forget my "2 lines" post.
   
   Now the comparison is "if-based original version" vs "ternary operators with 
3 lines by Gabriele". From "easier to read" POV, I prefer "if-based original 
version". But I'm also not strongly opinionated on syntax details. If 
@gitgabrio strongly likes the ternary operators, I'm fine to change. Let me 
know.



-- 
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]

Reply via email to