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

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

commit b7a6a413d7fc9484654a72e3e562dd54c640df78
Author: Daniel Sun <sun...@apache.org>
AuthorDate: Sat Jun 15 07:01:20 2024 +0900

    Replace Java-style array declaration
    
    (cherry picked from commit d9499ecdf994583c7e26501efdc2398eec5dd4b1)
---
 .../groovy/groovy/console/ui/text/StructuredSyntaxDocumentFilter.java | 4 ++--
 subprojects/groovy-jmx/src/main/java/groovy/jmx/GroovyMBean.java      | 2 +-
 subprojects/groovy-sql/src/main/java/groovy/sql/Sql.java              | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/subprojects/groovy-console/src/main/groovy/groovy/console/ui/text/StructuredSyntaxDocumentFilter.java
 
b/subprojects/groovy-console/src/main/groovy/groovy/console/ui/text/StructuredSyntaxDocumentFilter.java
index aedbd58644..afa6736b9b 100644
--- 
a/subprojects/groovy-console/src/main/groovy/groovy/console/ui/text/StructuredSyntaxDocumentFilter.java
+++ 
b/subprojects/groovy-console/src/main/groovy/groovy/console/ui/text/StructuredSyntaxDocumentFilter.java
@@ -454,7 +454,7 @@ public class StructuredSyntaxDocumentFilter extends 
DocumentFilter {
          * @param regexps
          * @param style
          */
-        public void putStyle(String regexps[], Style style) {
+        public void putStyle(String[] regexps, Style style) {
             putStyle(buildRegexp(regexps), style);
         }
 
@@ -476,7 +476,7 @@ public class StructuredSyntaxDocumentFilter extends 
DocumentFilter {
         /**
          * @param regexps
          */
-        public void removeStyle(String regexps[]) {
+        public void removeStyle(String[] regexps) {
             removeStyle(buildRegexp(regexps));
         }
 
diff --git a/subprojects/groovy-jmx/src/main/java/groovy/jmx/GroovyMBean.java 
b/subprojects/groovy-jmx/src/main/java/groovy/jmx/GroovyMBean.java
index 1f6143bcad..1b3e6b3785 100644
--- a/subprojects/groovy-jmx/src/main/java/groovy/jmx/GroovyMBean.java
+++ b/subprojects/groovy-jmx/src/main/java/groovy/jmx/GroovyMBean.java
@@ -71,7 +71,7 @@ public class GroovyMBean extends GroovyObjectSupport {
 
         MBeanOperationInfo[] operationInfos = beanInfo.getOperations();
         for (MBeanOperationInfo info : operationInfos) {
-            String signature[] = createSignature(info);
+            String[] signature = createSignature(info);
             // Construct a simplistic key to support overloaded operations on 
the MBean.
             String operationKey = createOperationKey(info.getName(), 
signature.length);
             operations.put(operationKey, signature);
diff --git a/subprojects/groovy-sql/src/main/java/groovy/sql/Sql.java 
b/subprojects/groovy-sql/src/main/java/groovy/sql/Sql.java
index c84dfd2164..ee16ac3366 100644
--- a/subprojects/groovy-sql/src/main/java/groovy/sql/Sql.java
+++ b/subprojects/groovy-sql/src/main/java/groovy/sql/Sql.java
@@ -4595,7 +4595,7 @@ public class Sql implements AutoCloseable {
     }
 
     private void clearStatementCache() {
-        Statement statements[];
+        Statement[] statements;
         if (statementCache.isEmpty())
             return;
         statements = new Statement[statementCache.size()];

Reply via email to