Always use 'this.' when accessing fields
Ensure that `this.` is used consistently when accessing class fields. Issue: SPR-16968
This commit is contained in:
committed by
Juergen Hoeller
parent
eeebd51f57
commit
0b53c1096a
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -57,7 +57,7 @@ public class JmsListenerEndpointRegistrar implements BeanFactoryAware, Initializ
|
||||
|
||||
private boolean startImmediately;
|
||||
|
||||
private Object mutex = endpointDescriptors;
|
||||
private Object mutex = this.endpointDescriptors;
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -486,7 +486,7 @@ public abstract class AbstractMessageListenerContainer extends AbstractJmsListen
|
||||
@Override
|
||||
public boolean isReplyPubSubDomain() {
|
||||
if (this.replyPubSubDomain != null) {
|
||||
return replyPubSubDomain;
|
||||
return this.replyPubSubDomain;
|
||||
}
|
||||
else {
|
||||
return isPubSubDomain();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -293,7 +293,7 @@ public class SimpleMessageListenerContainer extends AbstractMessageListenerConta
|
||||
MessageConsumer consumer = createConsumer(session, destination);
|
||||
|
||||
if (this.taskExecutor != null) {
|
||||
consumer.setMessageListener(message -> taskExecutor.execute(() -> processMessage(message, session)));
|
||||
consumer.setMessageListener(message -> this.taskExecutor.execute(() -> processMessage(message, session)));
|
||||
}
|
||||
else {
|
||||
consumer.setMessageListener(message -> processMessage(message, session));
|
||||
|
||||
@@ -64,7 +64,7 @@ public class JmsMessageEndpointFactory extends AbstractMessageEndpointFactory {
|
||||
* Return the JMS MessageListener for this endpoint.
|
||||
*/
|
||||
protected MessageListener getMessageListener() {
|
||||
Assert.state(messageListener != null, "No MessageListener set");
|
||||
Assert.state(this.messageListener != null, "No MessageListener set");
|
||||
return this.messageListener;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user