commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thecarlh...@apache.org
Subject [14/50] commons-dbutils git commit: Findbug: Exception is caught when Exception is not thrown - make clear that we deliberately also catching RuntimeExceptions here.
Date Fri, 07 Jul 2017 02:05:49 GMT
Findbug: Exception is caught when Exception is not thrown - make clear that we deliberately
also catching RuntimeExceptions here.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/dbutils/trunk@1611137 13f79535-47bb-0310-9956-ffa450edef68


Project: http://git-wip-us.apache.org/repos/asf/commons-dbutils/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-dbutils/commit/37f6b481
Tree: http://git-wip-us.apache.org/repos/asf/commons-dbutils/tree/37f6b481
Diff: http://git-wip-us.apache.org/repos/asf/commons-dbutils/diff/37f6b481

Branch: refs/heads/master
Commit: 37f6b481740a1243ea859c41a224079bc86fa9a5
Parents: 3f4a0e0
Author: Benedikt Ritter <britter@apache.org>
Authored: Wed Jul 16 18:55:01 2014 +0000
Committer: Benedikt Ritter <britter@apache.org>
Committed: Wed Jul 16 18:55:01 2014 +0000

----------------------------------------------------------------------
 src/main/java/org/apache/commons/dbutils/DbUtils.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-dbutils/blob/37f6b481/src/main/java/org/apache/commons/dbutils/DbUtils.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/dbutils/DbUtils.java b/src/main/java/org/apache/commons/dbutils/DbUtils.java
index 6f95301..5d837b8 100644
--- a/src/main/java/org/apache/commons/dbutils/DbUtils.java
+++ b/src/main/java/org/apache/commons/dbutils/DbUtils.java
@@ -227,9 +227,10 @@ public final class DbUtils {
             }
 
             return true;
+        } catch (RuntimeException e) {
+            return false;
         } catch (Exception e) {
             return false;
-
         }
     }
 


Mime
View raw message