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


##########
drools-drl/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/ParserHelper.java:
##########
@@ -100,6 +112,17 @@ public class ParserHelper {
 
     private final LanguageLevelOption                 languageLevel;
 
+    private static final Set<String> BUILT_IN_OPERATORS = 
Arrays.stream(Operator.BuiltInOperator.values())
+            .map(Operator.BuiltInOperator::getSymbol)
+            .collect(Collectors.toSet());
+
+    private static int logCounterHalfConstraint = 0;
+    private static int logCounterCustomOperator = 0;
+    private static int logCounterInfixAnd = 0;
+    private static int logCounterInfixOr = 0;
+    private static int logCounterAnnotationInLhsPattern = 0;
+    private static int logCounterAgendaGroup = 0;

Review Comment:
   A counter to suppress log flooding. Using `static int` is a bit rough way, 
but `ParserHelper` instance is short-living, so we cannot use instance fields. 
Managing the counter in an external class seems to be too much for logging.



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