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


The following commit(s) were added to refs/heads/master by this push:
     new f4208cef Normalize array type declarations
     new 4297af89 Merge branch 'master' of 
https://gitbox.apache.org/repos/asf/commons-jcs
f4208cef is described below

commit f4208cef461653968b00a0a416fd4a173dbeb6d2
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Wed Aug 23 08:47:29 2023 -0400

    Normalize array type declarations
---
 .../commons/jcs3/auxiliary/disk/jdbc/mysql/util/ScheduleParser.java     | 2 +-
 .../jcs3/auxiliary/lateral/socket/tcp/LateralTCPCacheFactory.java       | 2 +-
 .../apache/commons/jcs3/engine/control/CompositeCacheConfigurator.java  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/commons-jcs3-core/src/main/java/org/apache/commons/jcs3/auxiliary/disk/jdbc/mysql/util/ScheduleParser.java
 
b/commons-jcs3-core/src/main/java/org/apache/commons/jcs3/auxiliary/disk/jdbc/mysql/util/ScheduleParser.java
index 33d444a1..a7453824 100644
--- 
a/commons-jcs3-core/src/main/java/org/apache/commons/jcs3/auxiliary/disk/jdbc/mysql/util/ScheduleParser.java
+++ 
b/commons-jcs3-core/src/main/java/org/apache/commons/jcs3/auxiliary/disk/jdbc/mysql/util/ScheduleParser.java
@@ -45,7 +45,7 @@ public class ScheduleParser
             throw new ParseException( "Cannot create schedules for a null or 
empty String.", 0 );
         }
 
-        final String timeStrings[] = schedule.split("\\s*,\\s*");
+        final String[] timeStrings = schedule.split("\\s*,\\s*");
         final Date[] dates = new Date[timeStrings.length];
         int cnt = 0;
         for (String time : timeStrings)
diff --git 
a/commons-jcs3-core/src/main/java/org/apache/commons/jcs3/auxiliary/lateral/socket/tcp/LateralTCPCacheFactory.java
 
b/commons-jcs3-core/src/main/java/org/apache/commons/jcs3/auxiliary/lateral/socket/tcp/LateralTCPCacheFactory.java
index 0d9747c5..1ac02fae 100644
--- 
a/commons-jcs3-core/src/main/java/org/apache/commons/jcs3/auxiliary/lateral/socket/tcp/LateralTCPCacheFactory.java
+++ 
b/commons-jcs3-core/src/main/java/org/apache/commons/jcs3/auxiliary/lateral/socket/tcp/LateralTCPCacheFactory.java
@@ -98,7 +98,7 @@ public class LateralTCPCacheFactory
         // no servers are required.
         if (lac.getTcpServers() != null && !lac.getTcpServers().isEmpty())
         {
-            final String servers[] = lac.getTcpServers().split("\\s*,\\s*");
+            final String[] servers = lac.getTcpServers().split("\\s*,\\s*");
             log.debug( "Configured for [{0}] servers.", servers.length );
 
             for (final String server : servers)
diff --git 
a/commons-jcs3-core/src/main/java/org/apache/commons/jcs3/engine/control/CompositeCacheConfigurator.java
 
b/commons-jcs3-core/src/main/java/org/apache/commons/jcs3/engine/control/CompositeCacheConfigurator.java
index cb59a201..c7bb9b85 100644
--- 
a/commons-jcs3-core/src/main/java/org/apache/commons/jcs3/engine/control/CompositeCacheConfigurator.java
+++ 
b/commons-jcs3-core/src/main/java/org/apache/commons/jcs3/engine/control/CompositeCacheConfigurator.java
@@ -219,7 +219,7 @@ public class CompositeCacheConfigurator
 
             log.debug( "Parsing region name \"{0}\", value \"{1}\"", regName, 
auxiliaries );
 
-            String auxNames[] = auxiliaries.split("\\s*,\\s*");
+            String[] auxNames = auxiliaries.split("\\s*,\\s*");
 
             // just to be on the safe side...
             if (auxNames.length == 0)

Reply via email to