This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new 5cedf4d5c2 Code clean-up - formatting. No functional change.
5cedf4d5c2 is described below
commit 5cedf4d5c2b3098473c9df94c33778393e1b2f42
Author: Mark Thomas <[email protected]>
AuthorDate: Fri May 23 11:10:47 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: [email protected]
For additional commands, e-mail: [email protected]