You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2015/02/12 17:29:43 UTC

svn commit: r1659306 - /tomcat/trunk/java/org/apache/tomcat/jni/Library.java

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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org