diff options
author | Paul Buonopane <techsoftadvanced@gmail.com> | 2012-02-23 12:26:55 -0500 |
---|---|---|
committer | Paul Buonopane <techsoftadvanced@gmail.com> | 2012-02-23 12:26:55 -0500 |
commit | a865c9ad01cd8b709d03674270933ed7349d9898 (patch) | |
tree | 06a5fc28c316ed273b940c43fdab586bc10e3ea1 | |
parent | 8c5d4d83f1152c68528ce06b7e31c18c19050d64 (diff) | |
download | Essentials-a865c9ad01cd8b709d03674270933ed7349d9898.tar Essentials-a865c9ad01cd8b709d03674270933ed7349d9898.tar.gz Essentials-a865c9ad01cd8b709d03674270933ed7349d9898.tar.lz Essentials-a865c9ad01cd8b709d03674270933ed7349d9898.tar.xz Essentials-a865c9ad01cd8b709d03674270933ed7349d9898.zip |
Formatting.
Signed-off-by: Paul Buonopane <techsoftadvanced@gmail.com>
-rw-r--r-- | Essentials/src/com/earth2me/essentials/storage/BukkitConstructor.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Essentials/src/com/earth2me/essentials/storage/BukkitConstructor.java b/Essentials/src/com/earth2me/essentials/storage/BukkitConstructor.java index 9d140a85f..93412be56 100644 --- a/Essentials/src/com/earth2me/essentials/storage/BukkitConstructor.java +++ b/Essentials/src/com/earth2me/essentials/storage/BukkitConstructor.java @@ -210,7 +210,8 @@ public class BukkitConstructor extends Constructor } return new EnchantmentLevel(enchant, level); } - if (node.getType().isEnum()) { + if (node.getType().isEnum()) + { final String val = (String)constructScalar((ScalarNode)node); if (val.isEmpty()) { @@ -218,7 +219,8 @@ public class BukkitConstructor extends Constructor } for (Object object : node.getType().getEnumConstants()) { - if (object.toString().equalsIgnoreCase(val)) { + if (object.toString().equalsIgnoreCase(val)) + { return object; } } @@ -292,7 +294,8 @@ public class BukkitConstructor extends Constructor final Field typeDefField = Constructor.class.getDeclaredField("typeDefinitions"); typeDefField.setAccessible(true); typeDefinitions = (Map<Class<? extends Object>, TypeDescription>)typeDefField.get((Constructor)BukkitConstructor.this); - if (typeDefinitions == null) { + if (typeDefinitions == null) + { throw new NullPointerException(); } } |