tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1392649 - /tomcat/trunk/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/DataSourceProxy.java
Date Mon, 01 Oct 2012 21:51:23 GMT
Author: markt
Date: Mon Oct  1 21:51:22 2012
New Revision: 1392649

URL: http://svn.apache.org/viewvc?rev=1392649&view=rev
Log:
Reformat to clear a couple of FindBugs warnings

Modified:
    tomcat/trunk/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/DataSourceProxy.java

Modified: tomcat/trunk/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/DataSourceProxy.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/DataSourceProxy.java?rev=1392649&r1=1392648&r2=1392649&view=diff
==============================================================================
--- tomcat/trunk/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/DataSourceProxy.java
(original)
+++ tomcat/trunk/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/DataSourceProxy.java
Mon Oct  1 21:51:22 2012
@@ -147,7 +147,11 @@ public class DataSourceProxy implements 
         if (con instanceof XAConnection) {
             return (XAConnection)con;
         } else {
-            try {con.close();} catch (Exception ignore){}
+            try {
+                con.close();
+            } catch (Exception ignore) {
+                // Ignore
+            }
             throw new SQLException("Connection from pool does not implement javax.sql.XAConnection");
         }
     }
@@ -160,7 +164,11 @@ public class DataSourceProxy implements 
         if (con instanceof XAConnection) {
             return (XAConnection)con;
         } else {
-            try {con.close();} catch (Exception ignore){}
+            try {
+                con.close();
+            } catch (Exception ignore) {
+                // Ignore
+            }
             throw new SQLException("Connection from pool does not implement javax.sql.XAConnection");
         }
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message