You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2024/02/24 22:43:37 UTC

(groovy) branch master updated: avoid deprecated method

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

paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/master by this push:
     new 40ce8f0a67 avoid deprecated method
40ce8f0a67 is described below

commit 40ce8f0a670ce132d59a57535a29b7082e97baa4
Author: Paul King <pa...@asert.com.au>
AuthorDate: Sun Feb 25 08:43:15 2024 +1000

    avoid deprecated method
---
 .../groovy-sql/src/main/java/groovy/sql/BatchingStatementWrapper.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/subprojects/groovy-sql/src/main/java/groovy/sql/BatchingStatementWrapper.java b/subprojects/groovy-sql/src/main/java/groovy/sql/BatchingStatementWrapper.java
index 4139704a25..c599d62a32 100644
--- a/subprojects/groovy-sql/src/main/java/groovy/sql/BatchingStatementWrapper.java
+++ b/subprojects/groovy-sql/src/main/java/groovy/sql/BatchingStatementWrapper.java
@@ -19,7 +19,7 @@
 package groovy.sql;
 
 import groovy.lang.GroovyObjectSupport;
-import org.codehaus.groovy.runtime.DefaultGroovyMethods;
+import org.codehaus.groovy.runtime.ArrayGroovyMethods;
 import org.codehaus.groovy.runtime.InvokerHelper;
 
 import java.sql.SQLException;
@@ -116,7 +116,7 @@ public class BatchingStatementWrapper extends GroovyObjectSupport implements Aut
         if (batchCount != lastResult.length) {
             log.warning("Problem executing batch - expected result length of " + batchCount + " but got " + lastResult.length);
         } else if (foundError) {
-            log.warning("Problem executing batch - at least one result failed in: " + DefaultGroovyMethods.toList(lastResult));
+            log.warning("Problem executing batch - at least one result failed in: " + ArrayGroovyMethods.toList(lastResult));
         } else {
             log.fine("Successfully executed batch with " + lastResult.length + " command(s)");
         }