commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1171842 - /commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/DbUtils.java
Date Fri, 16 Sep 2011 22:47:32 GMT
Author: simonetripodi
Date: Fri Sep 16 22:47:32 2011
New Revision: 1171842

URL: http://svn.apache.org/viewvc?rev=1171842&view=rev
Log:
fixed checkstyle warning: Utility classes should not have a public or default constructor.

Modified:
    commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/DbUtils.java

Modified: commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/DbUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/DbUtils.java?rev=1171842&r1=1171841&r2=1171842&view=diff
==============================================================================
--- commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/DbUtils.java (original)
+++ commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/DbUtils.java Fri Sep
16 22:47:32 2011
@@ -28,6 +28,15 @@ import java.sql.Statement;
 public final class DbUtils {
 
     /**
+     * Hidden constructor - Utility classes should not have a public or default constructor.
+     *
+     * @since 1.4
+     */
+    private DbUtils() {
+        // do nothing
+    }
+
+    /**
      * Close a <code>Connection</code>, avoid closing if null.
      *
      * @param conn Connection to close.



Mime
View raw message