File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
log4j-core/src/main/java/org/apache/logging/log4j/core/config Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 7878import org .apache .logging .log4j .status .StatusLogger ;
7979import org .apache .logging .log4j .util .LoaderUtil ;
8080import org .apache .logging .log4j .util .PropertiesUtil ;
81+ import org .apache .logging .log4j .util .Strings ;
8182
8283/**
8384 * The base Configuration. Many configuration implementations will extend this class.
@@ -775,7 +776,7 @@ public static Level getDefaultLevel() {
775776
776777 protected void setToDefault () {
777778 // LOG4J2-3431 don't set a default name if one has already been set
778- if (this . getName () == null || this . getName (). trim (). isEmpty ( )) {
779+ if (Strings . isBlank ( getName ())) {
779780 // LOG4J2-1176 facilitate memory leak investigation
780781 setName (DefaultConfiguration .DEFAULT_NAME + "@" + Integer .toHexString (hashCode ()));
781782 }
File renamed without changes.
You can’t perform that action at this time.
0 commit comments