1
0
mirror of synced 2026-08-05 01:36:56 +00:00

Always use 'this.' when accessing fields

Apply an Eclipse cleanup rules to ensure that fields are always accessed
using `this.`. This aligns with the style used by Spring Framework and
helps users quickly see the difference between a local and member
variable.

Issue gh-8945
This commit is contained in:
Phillip Webb
2020-07-26 11:51:05 -07:00
committed by Rob Winch
parent 6894ff5d12
commit 8866fa6fb0
793 changed files with 8689 additions and 8459 deletions
@@ -36,37 +36,37 @@ class DelegatingTestExecutionListener extends AbstractTestExecutionListener {
@Override
public void beforeTestClass(TestContext testContext) throws Exception {
delegate.beforeTestClass(testContext);
this.delegate.beforeTestClass(testContext);
}
@Override
public void prepareTestInstance(TestContext testContext) throws Exception {
delegate.prepareTestInstance(testContext);
this.delegate.prepareTestInstance(testContext);
}
@Override
public void beforeTestMethod(TestContext testContext) throws Exception {
delegate.beforeTestMethod(testContext);
this.delegate.beforeTestMethod(testContext);
}
@Override
public void beforeTestExecution(TestContext testContext) throws Exception {
delegate.beforeTestExecution(testContext);
this.delegate.beforeTestExecution(testContext);
}
@Override
public void afterTestExecution(TestContext testContext) throws Exception {
delegate.afterTestExecution(testContext);
this.delegate.afterTestExecution(testContext);
}
@Override
public void afterTestMethod(TestContext testContext) throws Exception {
delegate.afterTestMethod(testContext);
this.delegate.afterTestMethod(testContext);
}
@Override
public void afterTestClass(TestContext testContext) throws Exception {
delegate.afterTestClass(testContext);
this.delegate.afterTestClass(testContext);
}
}
@@ -87,12 +87,12 @@ public class ReactorContextTestExecutionListener extends DelegatingTestExecution
@Override
public Context currentContext() {
Context context = delegate.currentContext();
Context context = this.delegate.currentContext();
if (context.hasKey(CONTEXT_DEFAULTED_ATTR_NAME)) {
return context;
}
context = context.put(CONTEXT_DEFAULTED_ATTR_NAME, Boolean.TRUE);
Authentication authentication = securityContext.getAuthentication();
Authentication authentication = this.securityContext.getAuthentication();
if (authentication == null) {
return context;
}
@@ -102,22 +102,22 @@ public class ReactorContextTestExecutionListener extends DelegatingTestExecution
@Override
public void onSubscribe(Subscription s) {
delegate.onSubscribe(s);
this.delegate.onSubscribe(s);
}
@Override
public void onNext(T t) {
delegate.onNext(t);
this.delegate.onNext(t);
}
@Override
public void onError(Throwable t) {
delegate.onError(t);
this.delegate.onError(t);
}
@Override
public void onComplete() {
delegate.onComplete();
this.delegate.onComplete();
}
}