commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1186170 - in /commons/proper/dbutils/trunk/src/main/java/org/apache/commons/dbutils: AsyncQueryRunner.java BeanProcessor.java QueryRunner.java
Date Wed, 19 Oct 2011 12:34:21 GMT
Author: simonetripodi
Date: Wed Oct 19 12:34:21 2011
New Revision: 1186170

URL: http://svn.apache.org/viewvc?rev=1186170&view=rev
Log:
just fixed minor checkstyle violations

Modified:
    commons/proper/dbutils/trunk/src/main/java/org/apache/commons/dbutils/AsyncQueryRunner.java
    commons/proper/dbutils/trunk/src/main/java/org/apache/commons/dbutils/BeanProcessor.java
    commons/proper/dbutils/trunk/src/main/java/org/apache/commons/dbutils/QueryRunner.java

Modified: commons/proper/dbutils/trunk/src/main/java/org/apache/commons/dbutils/AsyncQueryRunner.java
URL: http://svn.apache.org/viewvc/commons/proper/dbutils/trunk/src/main/java/org/apache/commons/dbutils/AsyncQueryRunner.java?rev=1186170&r1=1186169&r2=1186170&view=diff
==============================================================================
--- commons/proper/dbutils/trunk/src/main/java/org/apache/commons/dbutils/AsyncQueryRunner.java
(original)
+++ commons/proper/dbutils/trunk/src/main/java/org/apache/commons/dbutils/AsyncQueryRunner.java
Wed Oct 19 12:34:21 2011
@@ -521,7 +521,7 @@ public class AsyncQueryRunner extends Ab
      * @throws SQLException if a database access error occurs
      */
     public Future<Integer> update(Connection conn, String sql, Object param) throws
SQLException {
-        return executorService.submit(this.update(conn, false, sql, new Object[] { param
}));
+        return executorService.submit(this.update(conn, false, sql, new Object[]{param}));
     }
 
     /**
@@ -567,7 +567,7 @@ public class AsyncQueryRunner extends Ab
      */
     public Future<Integer> update(String sql, Object param) throws SQLException {
         Connection conn = this.prepareConnection();
-        return executorService.submit(this.update(conn, true, sql, new Object[] { param }));
+        return executorService.submit(this.update(conn, true, sql, new Object[]{param}));
     }
 
     /**

Modified: commons/proper/dbutils/trunk/src/main/java/org/apache/commons/dbutils/BeanProcessor.java
URL: http://svn.apache.org/viewvc/commons/proper/dbutils/trunk/src/main/java/org/apache/commons/dbutils/BeanProcessor.java?rev=1186170&r1=1186169&r2=1186170&view=diff
==============================================================================
--- commons/proper/dbutils/trunk/src/main/java/org/apache/commons/dbutils/BeanProcessor.java
(original)
+++ commons/proper/dbutils/trunk/src/main/java/org/apache/commons/dbutils/BeanProcessor.java
Wed Oct 19 12:34:21 2011
@@ -249,7 +249,7 @@ public class BeanProcessor {
 
             // Don't call setter if the value object isn't the right type
             if (this.isCompatibleType(value, params[0])) {
-                setter.invoke(target, new Object[] { value });
+                setter.invoke(target, new Object[]{value});
             } else {
               throw new SQLException(
                   "Cannot set " + prop.getName() + ": incompatible types.");

Modified: commons/proper/dbutils/trunk/src/main/java/org/apache/commons/dbutils/QueryRunner.java
URL: http://svn.apache.org/viewvc/commons/proper/dbutils/trunk/src/main/java/org/apache/commons/dbutils/QueryRunner.java?rev=1186170&r1=1186169&r2=1186170&view=diff
==============================================================================
--- commons/proper/dbutils/trunk/src/main/java/org/apache/commons/dbutils/QueryRunner.java
(original)
+++ commons/proper/dbutils/trunk/src/main/java/org/apache/commons/dbutils/QueryRunner.java
Wed Oct 19 12:34:21 2011
@@ -175,7 +175,7 @@ public class QueryRunner extends Abstrac
      */
     @Deprecated
     public <T> T query(Connection conn, String sql, Object param, ResultSetHandler<T>
rsh) throws SQLException {
-        return this.query(conn, false, sql, rsh, new Object[] { param });
+        return this.query(conn, false, sql, rsh, new Object[]{param});
     }
 
     /**
@@ -242,7 +242,7 @@ public class QueryRunner extends Abstrac
     public <T> T query(String sql, Object param, ResultSetHandler<T> rsh) throws
SQLException {
         Connection conn = this.prepareConnection();
 
-        return this.query(conn, true, sql, rsh, new Object[] { param });
+        return this.query(conn, true, sql, rsh, new Object[]{param});
     }
 
     /**
@@ -386,7 +386,7 @@ public class QueryRunner extends Abstrac
      * @throws SQLException if a database access error occurs
      */
     public int update(Connection conn, String sql, Object param) throws SQLException {
-        return this.update(conn, false, sql, new Object[] { param });
+        return this.update(conn, false, sql, new Object[]{param});
     }
 
     /**
@@ -434,7 +434,7 @@ public class QueryRunner extends Abstrac
     public int update(String sql, Object param) throws SQLException {
         Connection conn = this.prepareConnection();
 
-        return this.update(conn, true, sql, new Object[] { param });
+        return this.update(conn, true, sql, new Object[]{param});
     }
 
     /**



Mime
View raw message