yesamer commented on code in PR #6343:
URL:
https://github.com/apache/incubator-kie-drools/pull/6343#discussion_r2086771541
##########
drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/ConstraintParser.java:
##########
@@ -804,17 +816,17 @@ public static TypedExpression getCoercedRightExpression(
PackageModel packageMod
private boolean hasDeclarationFromOtherPattern(ExpressionTyperContext
expressionTyperContext) {
return expressionTyperContext.getUsedDeclarations()
- .stream()
- .map(context::getTypedDeclarationById)
- .anyMatch(optDecl -> {
- if (optDecl.isPresent()) {
- TypedDeclarationSpec decl =
optDecl.get();
- if (!decl.isGlobal() &&
decl.getBelongingPatternDescr() != context.getCurrentPatternDescr()) {
- return true;
- }
- }
- return false;
- });
+ .stream()
+ .map(context::getTypedDeclarationById)
+ .anyMatch(optDecl -> {
+ if (optDecl.isPresent()) {
+ TypedDeclarationSpec decl = optDecl.get();
+ if (!decl.isGlobal() &&
decl.getBelongingPatternDescr() != context.getCurrentPatternDescr()) {
+ return true;
+ }
+ }
+ return false;
+ });
Review Comment:
@SoniyaAbraham89 Thank you for your PR! May I ask you to revert all the
formatting-only changes, just to focus on the real code changes only? Thanks!
--
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]