DaanHoogland commented on code in PR #11591:
URL: https://github.com/apache/cloudstack/pull/11591#discussion_r2524796237
##########
utils/src/main/java/com/cloud/utils/EnumUtils.java:
##########
Review Comment:
```suggestion
public class EnumUtils extends org.apache.commons.lang3.EnumUtils {
```
##########
utils/src/main/java/com/cloud/utils/EnumUtils.java:
##########
@@ -55,4 +55,12 @@ public static <T extends Enum<T>> T fromString(Class<T> clz,
String value) {
}
return null;
}
+
+ public static <T extends Enum<T>> T getEnumIgnoreCase(final Class<T>
enumClass, final String enumName) {
+ return org.apache.commons.lang3.EnumUtils.getEnumIgnoreCase(enumClass,
enumName);
+ }
+
+ public static <T extends Enum<T>> T getEnumIgnoreCase(final Class<T>
enumClass, final String enumName, T defaultValue) {
+ return org.apache.commons.lang3.EnumUtils.getEnumIgnoreCase(enumClass,
enumName, defaultValue);
+ }
Review Comment:
```suggestion
```
--
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]