Copilot commented on code in PR #6424:
URL: 
https://github.com/apache/incubator-kie-drools/pull/6424#discussion_r2282117017


##########
kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/RuntimeModeOption.java:
##########
@@ -53,7 +62,7 @@ public String getMode() {
     public RuntimeModeOption(String runtimeMode) {
         MODE toSet = null;
         try {
-            toSet = MODE.valueOf(runtimeMode);
+            toSet = MODE.getModeFromString(runtimeMode);

Review Comment:
   The try-catch block is now redundant since getModeFromString() handles 
invalid strings by returning MODE.LENIENT as a fallback. The catch block will 
never be executed because getModeFromString() doesn't throw exceptions.



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