ppkarwasz commented on a change in pull request #762:
URL: https://github.com/apache/logging-log4j2/pull/762#discussion_r810179530



##########
File path: 
log4j-1.2-api/src/main/java/org/apache/log4j/builders/BuilderManager.java
##########
@@ -71,7 +71,7 @@ public Appender parseAppender(String name, String className, 
String prefix, Stri
             String filterPrefix, Properties props, PropertiesConfiguration 
config) {
         Objects.requireNonNull(plugins, "plugins");
         Objects.requireNonNull(className, "className");
-        PluginType<?> plugin = plugins.get(className.toLowerCase());
+        PluginType<?> plugin = plugins.get(className.toLowerCase().trim());

Review comment:
       AFAIK `toLowerCase()` does not return nulls. :-) Besides, `className` is 
protected by an `Objects.requireNonNull`.




-- 
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