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

markt pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/9.0.x by this push:
     new 403ef0a4ad Code clean-up - formatting. No functional change.
403ef0a4ad is described below

commit 403ef0a4ad04d14a8a3612f4f6bf8f9d21dc4154
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Fri May 23 11:12:44 2025 +0100

    Code clean-up - formatting. No functional change.
---
 java/org/apache/tomcat/util/res/StringManager.java | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/java/org/apache/tomcat/util/res/StringManager.java 
b/java/org/apache/tomcat/util/res/StringManager.java
index 066568c8af..c1a5a373bc 100644
--- a/java/org/apache/tomcat/util/res/StringManager.java
+++ b/java/org/apache/tomcat/util/res/StringManager.java
@@ -175,7 +175,7 @@ public class StringManager {
     // STATIC SUPPORT METHODS
     // --------------------------------------------------------------
 
-    private static final Map<String, Map<Locale, StringManager>> managers = 
new HashMap<>();
+    private static final Map<String,Map<Locale,StringManager>> managers = new 
HashMap<>();
 
 
     /**
@@ -216,18 +216,18 @@ public class StringManager {
      */
     public static synchronized StringManager getManager(String packageName, 
Locale locale) {
 
-        Map<Locale, StringManager> map = managers.get(packageName);
+        Map<Locale,StringManager> map = managers.get(packageName);
         if (map == null) {
             /*
              * Don't want the HashMap size to exceed LOCALE_CACHE_SIZE. 
Expansion occurs when size() exceeds capacity.
-             * Therefore, keep size at or below capacity. removeEldestEntry() 
executes after insertion therefore the test
-             * for removal needs to use one less than the maximum desired 
size. Note this is an LRU cache.
+             * Therefore, keep size at or below capacity. removeEldestEntry() 
executes after insertion therefore the
+             * test for removal needs to use one less than the maximum desired 
size. Note this is an LRU cache.
              */
-            map = new LinkedHashMap<Locale, StringManager>(LOCALE_CACHE_SIZE, 
0.75f, true) {
+            map = new LinkedHashMap<Locale,StringManager>(LOCALE_CACHE_SIZE, 
0.75f, true) {
                 private static final long serialVersionUID = 1L;
 
                 @Override
-                protected boolean removeEldestEntry(Map.Entry<Locale, 
StringManager> eldest) {
+                protected boolean 
removeEldestEntry(Map.Entry<Locale,StringManager> eldest) {
                     return size() > (LOCALE_CACHE_SIZE - 1);
                 }
             };


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to