File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
log4j-core/src/main/java/org/apache/logging/log4j/core/async Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -418,9 +418,7 @@ public void clear() {
418418 this .level = null ;
419419 this .threadName = null ;
420420 this .loggerName = null ;
421- this .message = null ;
422- this .messageFormat = null ;
423- clearMessageTextAndParameters ();
421+ clearMessage ();
424422 this .thrown = null ;
425423 this .thrownProxy = null ;
426424 clearContextData ();
@@ -431,7 +429,9 @@ public void clear() {
431429 this .asyncLogger = null ;
432430 }
433431
434- private void clearMessageTextAndParameters () {
432+ private void clearMessage () {
433+ message = null ;
434+ messageFormat = null ;
435435 // ensure that excessively long char[] arrays are not kept in memory forever
436436 if (Constants .ENABLE_THREADLOCALS ) {
437437 StringBuilders .trimToMaxSize (messageText , Constants .MAX_REUSABLE_MESSAGE_SIZE );
You can’t perform that action at this time.
0 commit comments