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.
|
||||
@@ -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;
|
||||
|
||||
@@ -87,7 +87,7 @@ public class HeuristicCompletionException extends TransactionException {
|
||||
* @see #STATE_MIXED
|
||||
*/
|
||||
public int getOutcomeState() {
|
||||
return outcomeState;
|
||||
return this.outcomeState;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ public class InvalidTimeoutException extends TransactionUsageException {
|
||||
* Return the invalid timeout value.
|
||||
*/
|
||||
public int getTimeout() {
|
||||
return timeout;
|
||||
return this.timeout;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user