Assorted whitespace fixes

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2017-08-06 09:08:05 +10:00
parent da073e8e66
commit e3d4acc303
50 changed files with 96 additions and 107 deletions

View File

@@ -12,7 +12,7 @@ public class Pattern implements ConfigurationSerializable {
private static final String COLOR = "color";
private static final String PATTERN = "pattern";
private final DyeColor color;
private final PatternType pattern;
@@ -27,7 +27,7 @@ public class Pattern implements ConfigurationSerializable {
this.color = color;
this.pattern = pattern;
}
/**
* Constructor for deserialization.
*
@@ -36,16 +36,16 @@ public class Pattern implements ConfigurationSerializable {
public Pattern(Map<String, Object> map) {
color = DyeColor.valueOf(getString(map, COLOR));
pattern = PatternType.getByIdentifier(getString(map, PATTERN));
}
}
private static String getString(Map<?,?> map, Object key) {
private static String getString(Map<?, ?> map, Object key) {
Object str = map.get(key);
if (str instanceof String) {
return (String) str;
}
throw new NoSuchElementException(map + " does not contain " + key);
}
@Override
public Map<String, Object> serialize() {
return ImmutableMap.<String, Object>of(