You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by pk...@apache.org on 2023/02/07 17:58:01 UTC
[logging-log4j2] 03/03: Remove unused cache
This is an automated email from the ASF dual-hosted git repository.
pkarwasz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
commit 42916687fd2d493d63571311b3756ea67276a708
Author: Piotr P. Karwasz <pi...@karwasz.org>
AuthorDate: Tue Feb 7 18:55:57 2023 +0100
Remove unused cache
---
.../main/java/org/apache/logging/log4j/util/PropertiesUtil.java | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/log4j-api/src/main/java/org/apache/logging/log4j/util/PropertiesUtil.java b/log4j-api/src/main/java/org/apache/logging/log4j/util/PropertiesUtil.java
index 5fd23f6aaa..d96b78f470 100644
--- a/log4j-api/src/main/java/org/apache/logging/log4j/util/PropertiesUtil.java
+++ b/log4j-api/src/main/java/org/apache/logging/log4j/util/PropertiesUtil.java
@@ -189,14 +189,9 @@ public class PropertiesUtil implements PropertyEnvironment {
private final Set<PropertySource> sources = new ConcurrentSkipListSet<>(new PropertySource.Comparator());
/**
- * Maps a key to its value in the lowest priority source that contains it.
+ * Maps a key to its value or the value of its normalization in the lowest priority source that contains it.
*/
private final Map<String, String> literal = new ConcurrentHashMap<>();
- /**
- * Maps a key to the value associated to its normalization in the lowest
- * priority source that contains it.
- */
- private final Map<String, String> normalized = new ConcurrentHashMap<>();
private final Map<List<CharSequence>, String> tokenized = new ConcurrentHashMap<>();
private Environment(final PropertySource propertySource) {
@@ -224,7 +219,6 @@ public class PropertiesUtil implements PropertyEnvironment {
private synchronized void reload() {
literal.clear();
- normalized.clear();
tokenized.clear();
// 1. Collects all property keys from enumerable sources.
final Set<String> keys = new HashSet<>();