gitgabrio commented on code in PR #3686:
URL: 
https://github.com/apache/incubator-kie-kogito-runtimes/pull/3686#discussion_r1810937547


##########
kogito-codegen-modules/kogito-codegen-processes/src/main/java/org/kie/kogito/codegen/process/ProcessCodegen.java:
##########
@@ -436,10 +440,16 @@ protected Collection<GeneratedFile> internalGenerate() {
         }
 
         //Generating the Producer classes for Dependency Injection
-        StaticDependencyInjectionProducerGenerator.of(context())
-                .generate()
+        StaticDependencyInjectionProducerGenerator 
staticDependencyInjectionProducerGenerator = 
StaticDependencyInjectionProducerGenerator.of(context());
+
+        staticDependencyInjectionProducerGenerator.generate()
                 .entrySet()
                 .forEach(entry -> storeFile(PRODUCER_TYPE, entry.getKey(), 
entry.getValue()));
+        Boolean businessCalendar = 
context().getContextAttribute(BUSINESS_CALENDAR_RESOURCE_KEY, Boolean.class);

Review Comment:
   @Abhitocode 
   Please rename that variable - it's extremely confusing: it has the same name 
given to BusinessCalendar objects



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