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

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


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

commit 696f5bd0975ad61a6526ed0345b3b2e4913a2ee3
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Fri May 23 11:11:50 2025 +0100

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

diff --git a/java/org/apache/tomcat/util/res/StringManager.java 
b/java/org/apache/tomcat/util/res/StringManager.java
index 4048beb6ba..db9d6a6c5e 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_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