You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by ag...@apache.org on 2017/10/25 23:33:10 UTC
[geode] 01/02: spotless
This is an automated email from the ASF dual-hosted git repository.
agingade pushed a commit to branch feature/GEODE-3781
in repository https://gitbox.apache.org/repos/asf/geode.git
commit d94119675417ac54d6d6e06d39c330fb15159cb1
Author: Anil <ag...@pivotal.io>
AuthorDate: Wed Oct 25 16:17:13 2017 -0700
spotless
---
.../java/org/apache/geode/connectors/jdbc/JDBCManager.java | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/geode-connectors/src/main/java/org/apache/geode/connectors/jdbc/JDBCManager.java b/geode-connectors/src/main/java/org/apache/geode/connectors/jdbc/JDBCManager.java
index 7c0283c..3e4ad5a 100644
--- a/geode-connectors/src/main/java/org/apache/geode/connectors/jdbc/JDBCManager.java
+++ b/geode-connectors/src/main/java/org/apache/geode/connectors/jdbc/JDBCManager.java
@@ -143,24 +143,22 @@ public class JDBCManager {
if (result != null && !result.isClosed()) {
return result;
}
- }
- catch (SQLException ignore) {
+ } catch (SQLException ignore) {
// If isClosed throws fall through and connect again
}
if (result == null) {
try {
Class.forName(this.config.getDriver());
- }
- catch (ClassNotFoundException e) {
+ } catch (ClassNotFoundException e) {
// TODO: consider a different exception
- throw new IllegalStateException("Driver class " + this.config.getDriver() + " not found", e);
+ throw new IllegalStateException("Driver class " + this.config.getDriver() + " not found",
+ e);
}
}
try {
result = DriverManager.getConnection(this.config.getURL());
- }
- catch (SQLException e) {
+ } catch (SQLException e) {
// TODO: consider a different exception
throw new IllegalStateException("Could not connect to " + this.config.getURL(), e);
}
--
To stop receiving notification emails like this one, please contact
"commits@geode.apache.org" <co...@geode.apache.org>.