Always use 'this.' when accessing fields

Ensure that `this.` is used consistently when accessing class
fields.

Issue: SPR-16968
This commit is contained in:
Phillip Webb
2018-06-25 11:37:17 -07:00
committed by Juergen Hoeller
parent eeebd51f57
commit 0b53c1096a
154 changed files with 374 additions and 373 deletions

View File

@@ -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.
@@ -230,7 +230,7 @@ public class SimpleTaskWorkManager implements WorkManager {
@Override
public void run() {
if (this.acceptOnExecution) {
this.workListener.workAccepted(new WorkEvent(this, WorkEvent.WORK_ACCEPTED, work, null));
this.workListener.workAccepted(new WorkEvent(this, WorkEvent.WORK_ACCEPTED, this.work, null));
}
synchronized (this.monitor) {
this.started = true;

View File

@@ -87,7 +87,7 @@ public class HeuristicCompletionException extends TransactionException {
* @see #STATE_MIXED
*/
public int getOutcomeState() {
return outcomeState;
return this.outcomeState;
}
}

View File

@@ -44,7 +44,7 @@ public class InvalidTimeoutException extends TransactionUsageException {
* Return the invalid timeout value.
*/
public int getTimeout() {
return timeout;
return this.timeout;
}
}

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2015 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.
@@ -96,7 +96,7 @@ public class RollbackRuleAttribute implements Serializable{
* Return the pattern for the exception name.
*/
public String getExceptionName() {
return exceptionName;
return this.exceptionName;
}
/**