This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-configuration.git


The following commit(s) were added to refs/heads/master by this push:
     new 8ab15861 Javadoc
8ab15861 is described below

commit 8ab15861148fd15b93f7f4444162e96c9e197cdb
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Tue May 7 09:58:56 2024 -0400

    Javadoc
    
    Whitespace
---
 src/test/java/org/apache/commons/configuration2/test/HsqlDB.java | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/test/java/org/apache/commons/configuration2/test/HsqlDB.java 
b/src/test/java/org/apache/commons/configuration2/test/HsqlDB.java
index 4ba1af15..f96aa71a 100644
--- a/src/test/java/org/apache/commons/configuration2/test/HsqlDB.java
+++ b/src/test/java/org/apache/commons/configuration2/test/HsqlDB.java
@@ -30,7 +30,7 @@ import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 
 /**
- * Stolen from Turbine
+ * Sourced from Apache Turbine.
  */
 public class HsqlDB {
 
@@ -40,9 +40,7 @@ public class HsqlDB {
 
     public HsqlDB(final String uri, final String databaseDriver, final String 
loadFile) throws Exception {
         Class.forName(databaseDriver);
-
         this.connection = DriverManager.getConnection(uri, "sa", "");
-
         if (StringUtils.isNotEmpty(loadFile)) {
             loadSqlFile(loadFile);
         }
@@ -67,7 +65,6 @@ public class HsqlDB {
     private void loadSqlFile(final String fileName) throws Exception {
         try (Statement statement = connection.createStatement()) {
             String commands = getFileContents(fileName);
-
             for (int targetPos = commands.indexOf(';'); targetPos > -1; 
targetPos = commands.indexOf(';')) {
                 final String cmd = commands.substring(0, targetPos + 1);
                 try {
@@ -75,7 +72,6 @@ public class HsqlDB {
                 } catch (final SQLException sqle) {
                     LOG.warn("Statement: " + cmd + ": " + sqle.getMessage());
                 }
-
                 commands = commands.substring(targetPos + 2);
             }
         }

Reply via email to