mdproctor commented on code in PR #5630:
URL: 
https://github.com/apache/incubator-kie-drools/pull/5630#discussion_r1432628280


##########
drools-core/src/main/java/org/drools/core/reteoo/builder/BuildUtils.java:
##########
@@ -203,9 +203,14 @@ private boolean areNodesCompatibleForSharing(BuildContext 
context, BaseNode node
      * @param list the list of constraints
      */
     public BetaConstraints createBetaNodeConstraint(final BuildContext context,
-                                                    final 
List<BetaNodeFieldConstraint> list,
+                                                    final List<BetaConstraint> 
list,
                                                     final boolean 
disableIndexing) {
         BetaConstraints constraints;
+        if ( list.size() == 1 && list.get(0) instanceof BetaConstraints) {

Review Comment:
   Look at the instanceof, notice the "s" on the end ;) BetaConstraints. It's 
checking if we have a BetaConstraint, that also implements BetaConstraints



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