summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authordurron597 <martin.jared@gmail.com>2011-01-02 02:16:29 -0500
committerdurron597 <martin.jared@gmail.com>2011-01-02 02:16:29 -0500
commit0a4642b8345e213e53642a3eeb2ac1bf25e9206e (patch)
tree9d4f0089c38f8d529b39382d5f34b15bccc1c819 /src/main/java
parent61232549e418b42520440d4ae9e5cea5d8ea66c2 (diff)
parent739142b42e0fa87406a68255d4d9f8190af4f821 (diff)
downloadbukkit-0a4642b8345e213e53642a3eeb2ac1bf25e9206e.tar
bukkit-0a4642b8345e213e53642a3eeb2ac1bf25e9206e.tar.gz
bukkit-0a4642b8345e213e53642a3eeb2ac1bf25e9206e.tar.lz
bukkit-0a4642b8345e213e53642a3eeb2ac1bf25e9206e.tar.xz
bukkit-0a4642b8345e213e53642a3eeb2ac1bf25e9206e.zip
Merge remote branch 'upstream/master'
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/bukkit/plugin/PluginDescriptionFile.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/plugin/PluginDescriptionFile.java b/src/main/java/org/bukkit/plugin/PluginDescriptionFile.java
index 9387d253..78f54281 100644
--- a/src/main/java/org/bukkit/plugin/PluginDescriptionFile.java
+++ b/src/main/java/org/bukkit/plugin/PluginDescriptionFile.java
@@ -17,6 +17,7 @@ public final class PluginDescriptionFile {
private String name = null;
private String main = null;
+ @SuppressWarnings("unchecked")
public PluginDescriptionFile(final InputStream stream) throws InvalidDescriptionException {
try {
loadMap((Map<String, Object>)yaml.load(stream));
@@ -29,10 +30,11 @@ public final class PluginDescriptionFile {
* Loads a PluginDescriptionFile from the specified reader
* @param reader
*/
+ @SuppressWarnings("unchecked")
public PluginDescriptionFile(final Reader reader) {
loadMap((Map<String, Object>)yaml.load(reader));
}
-
+
/**
* Creates a new PluginDescriptionFile with the given detailed
*