Author: markt Date: Thu Feb 12 16:29:43 2015 New Revision: 1659306 URL: http://svn.apache.org/r1659306 Log: Clean-up prior to applying a patch
Modified: tomcat/trunk/java/org/apache/tomcat/jni/Library.java Modified: tomcat/trunk/java/org/apache/tomcat/jni/Library.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/jni/Library.java?rev=1659306&r1=1659305&r2=1659306&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/tomcat/jni/Library.java (original) +++ tomcat/trunk/java/org/apache/tomcat/jni/Library.java Thu Feb 12 16:29:43 2015 @@ -32,17 +32,14 @@ public final class Library { */ private static Library _instance = null; - private Library() - throws Exception - { + private Library() throws Exception { boolean loaded = false; StringBuilder err = new StringBuilder(); for (int i = 0; i < NAMES.length; i++) { try { System.loadLibrary(NAMES[i]); loaded = true; - } - catch (Throwable t) { + } catch (Throwable t) { if (t instanceof ThreadDeath) { throw (ThreadDeath) t; } @@ -58,12 +55,14 @@ public final class Library { t.printStackTrace(); } } - if ( i > 0) + if (i > 0) { err.append(", "); + } err.append(t.getMessage()); } - if (loaded) + if (loaded) { break; + } } if (!loaded) { err.append('('); --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org