diff --git a/paper-api/src/main/java/org/bukkit/plugin/PluginDescriptionFile.java b/paper-api/src/main/java/org/bukkit/plugin/PluginDescriptionFile.java index 9387d253a8..78f54281ac 100644 --- a/paper-api/src/main/java/org/bukkit/plugin/PluginDescriptionFile.java +++ b/paper-api/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)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)yaml.load(reader)); } - + /** * Creates a new PluginDescriptionFile with the given detailed *