Copilot commented on code in PR #3961:
URL: 
https://github.com/apache/incubator-kie-kogito-runtimes/pull/3961#discussion_r2156675989


##########
kogito-codegen-modules/kogito-codegen-decisions/src/main/java/org/kie/kogito/codegen/decision/DecisionCodegen.java:
##########
@@ -163,6 +165,13 @@ Set<String> getCustomDMNProfilesProperties() {
     }
 
     boolean getEnableRuntimeTypeCheckOption() {
+        ConfigValue configValue = 
ConfigProvider.getConfig().getConfigValue("org.kie.dmn.runtime.typecheck");
+        return configValue != null && configValue.getValue() != null && 
!configValue.getValue().isEmpty() ? Boolean.parseBoolean(configValue.getValue())
+                : getEnableRuntimeTypeCheckOptionFromProperties();

Review Comment:
   Consider extracting the configuration value (e.g., configValue.getValue()) 
into a local variable to simplify the conditional statement and improve 
readability.
   ```suggestion
           if (configValue != null) {
               String configValueString = configValue.getValue();
               if (configValueString != null && !configValueString.isEmpty()) {
                   return Boolean.parseBoolean(configValueString);
               }
           }
           return getEnableRuntimeTypeCheckOptionFromProperties();
   ```



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