harikrishna-patnala commented on a change in pull request #4553:
URL: https://github.com/apache/cloudstack/pull/4553#discussion_r546787030
##########
File path: utils/src/main/java/com/cloud/utils/StringUtils.java
##########
@@ -313,4 +313,42 @@ public static String mapToString(final Map<String, String>
map) {
public static String toCSVList(final List<String> csvList) {
return join(csvList, ",");
}
+
+ public static int min(int x, int y, int z)
+ {
+ if (x <= y && x <= z)
+ return x;
+ if (y <= x && y <= z)
+ return y;
+ else
+ return z;
+ }
+
+ /**
+ * Calculates minimum number of edits required to convert from one string
to another string.
+ * @param str1
+ * String that needs editing
+ * @param str2
+ * Target string that needs after editing
Review comment:
Updated this section with suggested changes
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]