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:56:44 UTC
[logging-log4j2] 01/01: Remove unused cache
This is an automated email from the ASF dual-hosted git repository.
pkarwasz pushed a commit to branch release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
commit f37d79522a03a658c0a6d4e124439294c86abade
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 ec28006035..dcfa227f11 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
@@ -445,14 +445,9 @@ public final class PropertiesUtil {
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) {
@@ -484,7 +479,6 @@ public final class PropertiesUtil {
private synchronized void reload() {
literal.clear();
- normalized.clear();
tokenized.clear();
// 1. Collects all property keys from enumerable sources.
final Set<String> keys = new HashSet<>();