This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 11.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/11.0.x by this push: new 6dd34cd026 Code clean-up - formatting. No functional change. 6dd34cd026 is described below commit 6dd34cd0266f59c1aef48ceb9ee1724476ca2043 Author: Mark Thomas <ma...@apache.org> AuthorDate: Fri May 23 11:11:22 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 b7e399fb03..865f34f0d9 100644 --- a/java/org/apache/tomcat/util/res/StringManager.java +++ b/java/org/apache/tomcat/util/res/StringManager.java @@ -176,7 +176,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<>(); /** @@ -217,19 +217,19 @@ 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) { @Serial 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