File tree 2 files changed +9
-1
lines changed
log4j-api/src/main/java/org/apache/logging/log4j/util
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -536,7 +536,7 @@ private synchronized void reload() {
536
536
final Set <String > keys = new HashSet <>();
537
537
sources .stream ().map (PropertySource ::getPropertyNames ).forEach (keys ::addAll );
538
538
// 2. Fills the property caches. Sources with higher priority values don't override the previous ones.
539
- keys .stream ().filter (Objects :: nonNull ).forEach (key -> {
539
+ keys .stream ().filter (Strings :: isNotBlank ).forEach (key -> {
540
540
final List <CharSequence > tokens = PropertySource .Util .tokenize (key );
541
541
final boolean hasTokens = !tokens .isEmpty ();
542
542
sources .forEach (source -> {
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <entry xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
+ xmlns =" https://logging.apache.org/xml/ns"
4
+ xsi : schemaLocation =" https://logging.apache.org/xml/ns https://logging.apache.org/xml/ns/log4j-changelog-0.xsd"
5
+ type =" fixed" >
6
+ <issue id =" 2414" link =" https://github.com/apache/logging-log4j2/issues/2414" />
7
+ <description format =" asciidoc" >Discard blank keys in `PropertiesUtil`</description >
8
+ </entry >
You can’t perform that action at this time.
0 commit comments