diff options
author | md_5 <git@md-5.net> | 2018-07-15 22:38:15 +1000 |
---|---|---|
committer | md_5 <git@md-5.net> | 2018-07-15 22:38:15 +1000 |
commit | 59c4c0b7d460e8e3eaf9b12d8cafa888c3a68ce6 (patch) | |
tree | 3da1b6fa76a957be4cf6486126263cd4f1c8278b | |
parent | 81a2b53216f562cfaafee2c919ea837f64606cab (diff) | |
download | bukkit-59c4c0b7d460e8e3eaf9b12d8cafa888c3a68ce6.tar bukkit-59c4c0b7d460e8e3eaf9b12d8cafa888c3a68ce6.tar.gz bukkit-59c4c0b7d460e8e3eaf9b12d8cafa888c3a68ce6.tar.lz bukkit-59c4c0b7d460e8e3eaf9b12d8cafa888c3a68ce6.tar.xz bukkit-59c4c0b7d460e8e3eaf9b12d8cafa888c3a68ce6.zip |
Remove redundant try/catch loading api-version
-rw-r--r-- | src/main/java/org/bukkit/plugin/PluginDescriptionFile.java | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/main/java/org/bukkit/plugin/PluginDescriptionFile.java b/src/main/java/org/bukkit/plugin/PluginDescriptionFile.java index adce0ed1..c29ede77 100644 --- a/src/main/java/org/bukkit/plugin/PluginDescriptionFile.java +++ b/src/main/java/org/bukkit/plugin/PluginDescriptionFile.java @@ -1019,11 +1019,7 @@ public final class PluginDescriptionFile { } if (map.get("api-version") != null) { - try { - apiVersion = map.get("api-version").toString(); - } catch (ClassCastException ex) { - throw new InvalidDescriptionException(ex, "api-version is of wrong type"); - } + apiVersion = map.get("api-version").toString(); } try { |