commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thecarlh...@apache.org
Subject [10/50] commons-dbutils git commit: Make checkstyle happy
Date Fri, 07 Jul 2017 02:05:45 GMT
Make checkstyle happy

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/dbutils/trunk@1611114 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/356a20ff
Tree: http://git-wip-us.apache.org/repos/asf/commons-dbutils/tree/356a20ff
Diff: http://git-wip-us.apache.org/repos/asf/commons-dbutils/diff/356a20ff

Branch: refs/heads/master
Commit: 356a20ff2bc94e37504ac4ef861715813b4b542d
Parents: 8fd4dfc
Author: Benedikt Ritter <britter@apache.org>
Authored: Wed Jul 16 17:45:28 2014 +0000
Committer: Benedikt Ritter <britter@apache.org>
Committed: Wed Jul 16 17:45:28 2014 +0000

----------------------------------------------------------------------
 .../java/org/apache/commons/dbutils/GenerousBeanProcessor.java | 2 +-
 src/main/java/org/apache/commons/dbutils/QueryRunner.java      | 6 ++++--
 2 files changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-dbutils/blob/356a20ff/src/main/java/org/apache/commons/dbutils/GenerousBeanProcessor.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/dbutils/GenerousBeanProcessor.java b/src/main/java/org/apache/commons/dbutils/GenerousBeanProcessor.java
index f4fc8aa..65c92f5 100644
--- a/src/main/java/org/apache/commons/dbutils/GenerousBeanProcessor.java
+++ b/src/main/java/org/apache/commons/dbutils/GenerousBeanProcessor.java
@@ -51,7 +51,7 @@ public class GenerousBeanProcessor extends BeanProcessor {
                 columnName = rsmd.getColumnName(col);
             }
 
-            final String generousColumnName = columnName.replace("_","");
+            final String generousColumnName = columnName.replace("_", "");
 
             for (int i = 0; i < props.length; i++) {
                 final String propName = props[i].getName();

http://git-wip-us.apache.org/repos/asf/commons-dbutils/blob/356a20ff/src/main/java/org/apache/commons/dbutils/QueryRunner.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/dbutils/QueryRunner.java b/src/main/java/org/apache/commons/dbutils/QueryRunner.java
index 5a26dd9..b14b65c 100644
--- a/src/main/java/org/apache/commons/dbutils/QueryRunner.java
+++ b/src/main/java/org/apache/commons/dbutils/QueryRunner.java
@@ -577,7 +577,8 @@ public class QueryRunner extends AbstractQueryRunner {
      * @throws SQLException If there are database or parameter errors.
      * @since 1.6
      */
-    private <T> T insert(Connection conn, boolean closeConn, String sql, ResultSetHandler<T>
rsh, Object... params) throws SQLException {
+    private <T> T insert(Connection conn, boolean closeConn, String sql, ResultSetHandler<T>
rsh, Object... params)
+            throws SQLException {
         if (conn == null) {
             throw new SQLException("Null connection");
         }
@@ -663,7 +664,8 @@ public class QueryRunner extends AbstractQueryRunner {
      * @throws SQLException If there are database or parameter errors.
      * @since 1.6
      */
-    private <T> T insertBatch(Connection conn, boolean closeConn, String sql, ResultSetHandler<T>
rsh, Object[][] params) throws SQLException {
+    private <T> T insertBatch(Connection conn, boolean closeConn, String sql, ResultSetHandler<T>
rsh, Object[][] params)
+            throws SQLException {
         if (conn == null) {
             throw new SQLException("Null connection");
         }


Mime
View raw message