From 4e8b0da944b57e65cba7d3e797908b8646303bd0 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Sun, 25 May 2014 17:58:53 +1200 Subject: [PATCH] Get rid of this try/catch --- src/me/libraryaddict/disguise/utilities/ClassGetter.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/me/libraryaddict/disguise/utilities/ClassGetter.java b/src/me/libraryaddict/disguise/utilities/ClassGetter.java index 630da581..cc932613 100644 --- a/src/me/libraryaddict/disguise/utilities/ClassGetter.java +++ b/src/me/libraryaddict/disguise/utilities/ClassGetter.java @@ -48,13 +48,7 @@ public class ClassGetter { String relPath = pkgname.replace('.', '/'); String resPath = URLDecoder.decode(resource.getPath(), "UTF-8"); String jarPath = resPath.replaceFirst("[.]jar[!].*", ".jar").replaceFirst("file:", ""); - JarFile jarFile; - try { - jarFile = new JarFile(jarPath); - } catch (IOException e) { - throw new RuntimeException("Unexpected IOException reading JAR File '" + jarPath - + "'. Do you have strange characters in your folders? Such as #?", e); - } + JarFile jarFile = new JarFile(jarPath); Enumeration entries = jarFile.entries(); while (entries.hasMoreElements()) { JarEntry entry = entries.nextElement();