Never use 'this.' when accessing loggers
Ensure that `this.` is never used when accessing loggers. Issue: SPR-16968
This commit is contained in:
committed by
Juergen Hoeller
parent
0b53c1096a
commit
9de3689f63
@@ -206,8 +206,8 @@ public class GenericMessagingTemplate extends AbstractDestinationResolvingMessag
|
||||
Message<?> message = (timeout >= 0 ?
|
||||
((PollableChannel) channel).receive(timeout) : ((PollableChannel) channel).receive());
|
||||
|
||||
if (message == null && this.logger.isTraceEnabled()) {
|
||||
this.logger.trace("Failed to receive message from channel '" + channel + "' within timeout: " + timeout);
|
||||
if (message == null && logger.isTraceEnabled()) {
|
||||
logger.trace("Failed to receive message from channel '" + channel + "' within timeout: " + timeout);
|
||||
}
|
||||
|
||||
return message;
|
||||
|
||||
Reference in New Issue
Block a user