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-dbutils.git

commit cd799faea15ec31a1db5d99c7ad3889d5f06458c
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Mon Jul 31 09:06:56 2023 -0400

    Use compact array notation
---
 .../org/apache/commons/dbutils/BaseTestCase.java   | 82 +++++++++++-----------
 1 file changed, 41 insertions(+), 41 deletions(-)

diff --git a/src/test/java/org/apache/commons/dbutils/BaseTestCase.java 
b/src/test/java/org/apache/commons/dbutils/BaseTestCase.java
index d56c6fe..63a7adb 100644
--- a/src/test/java/org/apache/commons/dbutils/BaseTestCase.java
+++ b/src/test/java/org/apache/commons/dbutils/BaseTestCase.java
@@ -31,19 +31,19 @@ import junit.framework.TestCase;
 public class BaseTestCase extends TestCase {
 
     private static final String[] columnNames =
-        new String[] {
-            "one",
-            "two",
-            "three",
-            "notInBean",
-            "intTest",
-            "integerTest",
-            "nullObjectTest",
-            "nullPrimitiveTest",
-            "notDate",
-            "columnProcessorDoubleTest",
-            null
-        };
+        {
+        "one",
+        "two",
+        "three",
+        "notInBean",
+        "intTest",
+        "integerTest",
+        "nullObjectTest",
+        "nullPrimitiveTest",
+        "notDate",
+        "columnProcessorDoubleTest",
+        null
+    };
 
     /**
      * The number of columns in the MockResultSet.
@@ -64,36 +64,36 @@ public class BaseTestCase extends TestCase {
     }
 
     private static final Object[] row1 =
-        new Object[] {
-            "1",
-            "2",
-            "THREE",
-            "  notInBean  ",
-            Integer.valueOf(1),
-            Integer.valueOf(2),
-            null,
-            null,
-            new Date(),
-            BigInteger.valueOf(13),
-            null
-        };
+        {
+        "1",
+        "2",
+        "THREE",
+        "  notInBean  ",
+        Integer.valueOf(1),
+        Integer.valueOf(2),
+        null,
+        null,
+        new Date(),
+        BigInteger.valueOf(13),
+        null
+    };
 
     private static final Object[] row2 =
-        new Object[] {
-            "4",
-            "5",
-            "SIX",
-            "  notInBean  ",
-            Integer.valueOf(3),
-            Integer.valueOf(4),
-            null,
-            null,
-            ts789456123,
-            BigInteger.valueOf(13),
-            null
-        };
-
-    private static final Object[][] rows = new Object[][] { row1, row2 };
+        {
+        "4",
+        "5",
+        "SIX",
+        "  notInBean  ",
+        Integer.valueOf(3),
+        Integer.valueOf(4),
+        null,
+        null,
+        ts789456123,
+        BigInteger.valueOf(13),
+        null
+    };
+
+    private static final Object[][] rows = { row1, row2 };
 
     /**
      * The number of rows in the MockResultSet.

Reply via email to