From d9da788b6c0aae586a66dbcd3d502c562293b196 Mon Sep 17 00:00:00 2001 From: filoghost Date: Thu, 6 Aug 2020 12:08:51 +0200 Subject: [PATCH] Rename method --- .../java/me/filoghost/chestcommands/legacy/UpgradeList.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Plugin/src/main/java/me/filoghost/chestcommands/legacy/UpgradeList.java b/Plugin/src/main/java/me/filoghost/chestcommands/legacy/UpgradeList.java index 2a76de8..b1df271 100644 --- a/Plugin/src/main/java/me/filoghost/chestcommands/legacy/UpgradeList.java +++ b/Plugin/src/main/java/me/filoghost/chestcommands/legacy/UpgradeList.java @@ -42,13 +42,13 @@ public class UpgradeList { */ private static final ImmutableList orderedUpgrades = ImmutableList.of( multiTaskUpgrade("v4.0-menus-rename", (configManager) -> { - return createMenuBulkUpgrade(configManager, v4_0_MenuNodeRenameUpgradeTask::new); + return createMenuTasks(configManager, v4_0_MenuNodeRenameUpgradeTask::new); }), // Reformat after nodes have already been renamed multiTaskUpgrade("v4.0-menus-reformat", (configManager) -> { String legacyCommandSeparator = readLegacyCommandSeparator(configManager); - return createMenuBulkUpgrade(configManager, + return createMenuTasks(configManager, file -> new v4_0_MenuNodeExpandUpgradeTask(configManager, file, legacyCommandSeparator)); }), @@ -68,7 +68,7 @@ public class UpgradeList { return new Upgrade(id, upgradeTasksSupplier); } - private static List createMenuBulkUpgrade(ConfigManager configManager, Function menuTaskSupplier) throws UpgradeTaskException { + private static List createMenuTasks(ConfigManager configManager, Function menuTaskSupplier) throws UpgradeTaskException { List menuFiles = getMenuFiles(configManager); return CollectionUtils.transform(menuFiles, menuTaskSupplier); }