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() {
418
418
this .level = null ;
419
419
this .threadName = null ;
420
420
this .loggerName = null ;
421
- this .message = null ;
422
- this .messageFormat = null ;
423
- clearMessageTextAndParameters ();
421
+ clearMessage ();
424
422
this .thrown = null ;
425
423
this .thrownProxy = null ;
426
424
clearContextData ();
@@ -431,7 +429,9 @@ public void clear() {
431
429
this .asyncLogger = null ;
432
430
}
433
431
434
- private void clearMessageTextAndParameters () {
432
+ private void clearMessage () {
433
+ message = null ;
434
+ messageFormat = null ;
435
435
// ensure that excessively long char[] arrays are not kept in memory forever
436
436
if (Constants .ENABLE_THREADLOCALS ) {
437
437
StringBuilders .trimToMaxSize (messageText , Constants .MAX_REUSABLE_MESSAGE_SIZE );
You can’t perform that action at this time.
0 commit comments