From 59c4c0b7d460e8e3eaf9b12d8cafa888c3a68ce6 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 15 Jul 2018 22:38:15 +1000 Subject: Remove redundant try/catch loading api-version --- src/main/java/org/bukkit/plugin/PluginDescriptionFile.java | 6 +----- 1 file changed, 1 insertion(+), 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 { -- cgit v1.2.3