From: Lars K?h. <lk...@us...> - 2003-12-27 17:48:41
|
Update of /cvsroot/clirr/clirr/src/java/net/sf/clirr In directory sc8-pr-cvs1:/tmp/cvs-serv26006/src/java/net/sf/clirr Modified Files: Checker.java Log Message: fixed some findings of IDEA InspectionGadgets plugin Index: Checker.java =================================================================== RCS file: /cvsroot/clirr/clirr/src/java/net/sf/clirr/Checker.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- Checker.java 29 Sep 2003 05:26:12 -0000 1.5 +++ Checker.java 27 Dec 2003 17:47:16 -0000 1.6 @@ -193,7 +193,7 @@ } catch (IOException ex) { - throw new BuildException("Cannot read " + zipEntry + " from " + zip, ex); + throw new BuildException("Cannot read " + zipEntry.getName() + " from " + zip.getName(), ex); } finally { @@ -205,7 +205,7 @@ } catch (IOException ex) { - throw new BuildException(ex); + throw new BuildException("Cannot close " + zip.getName(), ex); } } } @@ -224,7 +224,9 @@ } catch (MalformedURLException ex) { - throw new RuntimeException("Cannot create classloader with jar file " + jarFile); + final IllegalArgumentException illegalArgumentException = new IllegalArgumentException("Cannot create classloader with jar file " + jarFile); + illegalArgumentException.initCause(ex); + throw illegalArgumentException; } } final URLClassLoader jarsLoader = new URLClassLoader(jarUrls, thirdPartyClasses); |