Add @Override to remaining source files
Issue: SPR-10130
This commit is contained in:
@@ -60,6 +60,7 @@ public final class MethodInvocationTests {
|
||||
@Test
|
||||
public void testToStringDoesntHitTarget() throws Throwable {
|
||||
Object target = new TestBean() {
|
||||
@Override
|
||||
public String toString() {
|
||||
throw new UnsupportedOperationException("toString");
|
||||
}
|
||||
|
||||
@@ -184,6 +184,7 @@ public final class DelegatingIntroductionInterceptorTests {
|
||||
TimeStamped ts = new SerializableTimeStamped(0);
|
||||
|
||||
factory.addAdvisor(0, new DefaultIntroductionAdvisor(new DelegatingIntroductionInterceptor(ts) {
|
||||
@Override
|
||||
public String toString() {
|
||||
throw new UnsupportedOperationException("Shouldn't be invoked");
|
||||
}
|
||||
|
||||
@@ -59,10 +59,12 @@ public class MethodCounter implements Serializable {
|
||||
* Doesn't worry about counts.
|
||||
* @see java.lang.Object#equals(java.lang.Object)
|
||||
*/
|
||||
@Override
|
||||
public boolean equals(Object other) {
|
||||
return (other != null && other.getClass() == this.getClass());
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return getClass().hashCode();
|
||||
}
|
||||
|
||||
@@ -46,6 +46,7 @@ public class NopInterceptor implements MethodInterceptor {
|
||||
++count;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object other) {
|
||||
if (!(other instanceof NopInterceptor)) {
|
||||
return false;
|
||||
|
||||
@@ -59,6 +59,7 @@ public class SerializablePerson implements Person, Serializable {
|
||||
return o;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object other) {
|
||||
if (!(other instanceof SerializablePerson)) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user