vishesh92 commented on code in PR #11591:
URL: https://github.com/apache/cloudstack/pull/11591#discussion_r2425474240
##########
utils/src/main/java/com/cloud/utils/EnumUtils.java:
##########
@@ -55,4 +55,16 @@ public static <T extends Enum<T>> T fromString(Class<T> clz,
String value) {
}
return null;
}
+
+ public static <T extends Enum<T>> T getEnumIgnoreCase(Class<T> enumClass,
String name) {
Review Comment:
We can use `org.apache.commons.lang3.EnumUtils`'s `getEnumIgnoreCase`
instead of this which does the exact the same thing.
--
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]