Add @Override to remaining source files
Issue: SPR-10130
This commit is contained in:
@@ -124,6 +124,7 @@ public class ContextHierarchyDirtiesContextTests {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
|
||||
ContextHierarchyDirtiesContextTests.context = applicationContext;
|
||||
ContextHierarchyDirtiesContextTests.baz = applicationContext.getBean("bean", String.class);
|
||||
|
||||
@@ -29,6 +29,7 @@ public class LegacyEntity {
|
||||
|
||||
private Object collaborator = new Object() {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
throw new RuntimeException(
|
||||
"Invoking toString() on the default collaborator causes an undesirable side effect");
|
||||
@@ -36,6 +37,7 @@ public class LegacyEntity {
|
||||
};
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringCreator(this)//
|
||||
.append("collaborator", this.collaborator)//
|
||||
|
||||
@@ -79,6 +79,7 @@ public class Person extends PersistentEntity {
|
||||
this.favoriteNumber = favoriteNumber;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringCreator(this)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user