File tree 2 files changed +2
-1
lines changed
log4j-core/src/main/java/org/apache/logging/log4j/core/config
2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 78
78
import org .apache .logging .log4j .status .StatusLogger ;
79
79
import org .apache .logging .log4j .util .LoaderUtil ;
80
80
import org .apache .logging .log4j .util .PropertiesUtil ;
81
+ import org .apache .logging .log4j .util .Strings ;
81
82
82
83
/**
83
84
* The base Configuration. Many configuration implementations will extend this class.
@@ -775,7 +776,7 @@ public static Level getDefaultLevel() {
775
776
776
777
protected void setToDefault () {
777
778
// 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 ())) {
779
780
// LOG4J2-1176 facilitate memory leak investigation
780
781
setName (DefaultConfiguration .DEFAULT_NAME + "@" + Integer .toHexString (hashCode ()));
781
782
}
File renamed without changes.
You can’t perform that action at this time.
0 commit comments