ramanathan1504 commented on code in PR #4186:
URL: https://github.com/apache/logging-log4j2/pull/4186#discussion_r3628504668


##########
log4j-layout-template-json/src/main/java/org/apache/logging/log4j/layout/template/json/resolver/ReadOnlyStringMapResolver.java:
##########
@@ -345,6 +356,9 @@ private enum LoopMethod implements TriConsumer<String, 
Object, LoopContext> {
 
         @Override
         public void accept(final String key, final Object value, final 
LoopContext loopContext) {
+            if (loopContext.keyExcludes != null && 
loopContext.keyExcludes.contains(key)) {

Review Comment:
   are you describing using Collections.emptySet() to avoid the != null check? 
I can make that change.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to