From 42362dca90a81e57683b2cc5fa03790b1d269f7e Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 11 Feb 2024 08:12:18 -0500 Subject: [PATCH] Method cleanup --- src/engine/gameManager/DbManager.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; }