Fixed building (moved IOByte deps to SBD repo)
All checks were successful
Plugins/ThemePark/pipeline/head This commit looks good
All checks were successful
Plugins/ThemePark/pipeline/head This commit looks good
This commit is contained in:
parent
f7d27ade47
commit
2966344abd
5 changed files with 56 additions and 17 deletions
|
@ -2,7 +2,6 @@ package nl.iobyte.themepark.api.config.objects;
|
|||
|
||||
import com.google.gson.Gson;
|
||||
import com.google.gson.GsonBuilder;
|
||||
import org.apache.commons.lang.Validate;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.configuration.ConfigurationSection;
|
||||
import org.bukkit.configuration.InvalidConfigurationException;
|
||||
|
@ -28,8 +27,6 @@ public class JsonConfiguration extends FileConfiguration {
|
|||
|
||||
@Override
|
||||
public void loadFromString(@NotNull String contents) throws InvalidConfigurationException {
|
||||
Validate.notNull(contents, "Contents cannot be null");
|
||||
|
||||
Map input;
|
||||
try {
|
||||
input = this.gson.fromJson(contents, Map.class);
|
||||
|
@ -65,7 +62,6 @@ public class JsonConfiguration extends FileConfiguration {
|
|||
|
||||
@NotNull
|
||||
public static YamlConfiguration loadConfiguration(@NotNull File file) {
|
||||
Validate.notNull(file, "File cannot be null");
|
||||
YamlConfiguration config = new YamlConfiguration();
|
||||
|
||||
try {
|
||||
|
|
Reference in a new issue