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:
@@ -39,8 +39,8 @@ public abstract class AbstractWebServerIntegrationTests {
|
||||
|
||||
@After
|
||||
public void close() {
|
||||
if (context != null) {
|
||||
context.close();
|
||||
if (this.context != null) {
|
||||
this.context.close();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ public class ConcurrentSessionManagementTests extends AbstractWebServerIntegrati
|
||||
|
||||
// Now logout to kill first session
|
||||
mockMvc.perform(post("/logout").with(csrf())).andExpect(status().is3xxRedirection())
|
||||
.andDo(result -> context.publishEvent(new SessionDestroyedEvent(session1) {
|
||||
.andDo(result -> this.context.publishEvent(new SessionDestroyedEvent(session1) {
|
||||
@Override
|
||||
public List<SecurityContext> getSecurityContexts() {
|
||||
return Collections.emptyList();
|
||||
|
||||
Reference in New Issue
Block a user