From d31c614148eeafeba016a73867c97dcf3110882a Mon Sep 17 00:00:00 2001 From: "Peter G. Horvath" Date: Sun, 25 Dec 2016 20:21:50 +0100 Subject: [PATCH] Added code formatter settings --- Settings/IDE/Eclipse/Code_Formatter.xml | 295 ++++++++++++++++++ .../java/com/github/dyna4jdbc/DynaDriver.java | 12 +- 2 files changed, 302 insertions(+), 5 deletions(-) create mode 100644 Settings/IDE/Eclipse/Code_Formatter.xml diff --git a/Settings/IDE/Eclipse/Code_Formatter.xml b/Settings/IDE/Eclipse/Code_Formatter.xml new file mode 100644 index 0000000..dd3b855 --- /dev/null +++ b/Settings/IDE/Eclipse/Code_Formatter.xml @@ -0,0 +1,295 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/java/com/github/dyna4jdbc/DynaDriver.java b/src/main/java/com/github/dyna4jdbc/DynaDriver.java index e757e2f..13f0965 100644 --- a/src/main/java/com/github/dyna4jdbc/DynaDriver.java +++ b/src/main/java/com/github/dyna4jdbc/DynaDriver.java @@ -28,7 +28,6 @@ import com.github.dyna4jdbc.internal.DriverInfo; import com.github.dyna4jdbc.internal.config.impl.DriverPropertyInfoFactory; - public final class DynaDriver implements java.sql.Driver { private static final Logger LOGGER = Logger.getLogger(DynaDriver.class.getName()); @@ -59,16 +58,19 @@ public DynaDriver() { public Connection connect(String url, Properties info) throws SQLException { if (!acceptsURL(url)) { - /* From the JavaDoc of java.sql.Driver.connect(String, Properties): + /* + * From the JavaDoc of java.sql.Driver.connect(String, Properties): * - * The driver should return "null" if it realizes it is the wrong + * The driver should return "null" if it realizes it is the wrong * kind of driver to connect to the given URL. */ return null; } - /* strip JDBC URL prefix from connection string and - * delegate the remaining section to the connection factory */ + /* + * strip JDBC URL prefix from connection string and delegate the + * remaining section to the connection factory + */ String factoryConfiguration = url.substring(JDBC_URL_PREFIX.length()); return connectionFactory.newConnection(factoryConfiguration, info);