diff --git a/src/main/java/com/onarandombox/MultiverseCore/configuration/migration/LongMigratorAction.java b/src/main/java/com/onarandombox/MultiverseCore/configuration/migration/LongMigratorAction.java index c1176bca..3f111423 100644 --- a/src/main/java/com/onarandombox/MultiverseCore/configuration/migration/LongMigratorAction.java +++ b/src/main/java/com/onarandombox/MultiverseCore/configuration/migration/LongMigratorAction.java @@ -4,6 +4,9 @@ import co.aikar.commands.ACFUtil; import com.dumptruckman.minecraft.util.Logging; import org.bukkit.configuration.ConfigurationSection; +/** + * Single migrator action that converts a string value to a long. + */ public class LongMigratorAction implements MigratorAction { public static LongMigratorAction of(String path) { @@ -16,6 +19,9 @@ public class LongMigratorAction implements MigratorAction { this.path = path; } + /** + * {@inheritDoc} + */ @Override public void migrate(ConfigurationSection config) { config.set(path, ACFUtil.parseLong(config.getString(path))); diff --git a/src/main/java/com/onarandombox/MultiverseCore/configuration/migration/NullStringMigratorAction.java b/src/main/java/com/onarandombox/MultiverseCore/configuration/migration/NullStringMigratorAction.java index daaba2cd..e47657be 100644 --- a/src/main/java/com/onarandombox/MultiverseCore/configuration/migration/NullStringMigratorAction.java +++ b/src/main/java/com/onarandombox/MultiverseCore/configuration/migration/NullStringMigratorAction.java @@ -3,6 +3,9 @@ package com.onarandombox.MultiverseCore.configuration.migration; import com.dumptruckman.minecraft.util.Logging; import org.bukkit.configuration.ConfigurationSection; +/** + * Single migrator action changes a string value of "null" to an empty string. + */ public class NullStringMigratorAction implements MigratorAction { public static NullStringMigratorAction of(String path) { @@ -15,6 +18,9 @@ public class NullStringMigratorAction implements MigratorAction { this.path = path; } + /** + * {@inheritDoc} + */ @Override public void migrate(ConfigurationSection config) { config.set(path, "null".equals(config.getString(path)) ? "" : config.getString(path));