diff --git a/src/engine/gameManager/DbManager.java b/src/engine/gameManager/DbManager.java index 76912425..a5abbdb0 100644 --- a/src/engine/gameManager/DbManager.java +++ b/src/engine/gameManager/DbManager.java @@ -269,7 +269,7 @@ public enum DbManager { public static > EnumSet parseEnumSet(String mysqlSet, Class enumClass) { - // Create empty EnumSet of the given class + // Create empty output set of the passed Enum class EnumSet enumSet = EnumSet.noneOf(enumClass); @@ -278,7 +278,7 @@ public enum DbManager { if (mysqlSet.isEmpty()) return enumSet; - // Split set string and trim each element + // Split set string and trim each element String[] elements = mysqlSet.split(","); @@ -286,13 +286,13 @@ public enum DbManager { element = element.trim(); - // Parse the element into an enum and add to set + // Parse the element into an enum; add to the output set E enumConstant = java.lang.Enum.valueOf(enumClass, element); enumSet.add(enumConstant); } - // Return the EnumSet + // Return the output set return enumSet; }