Add @Override to remaining source files

Issue: SPR-10130
This commit is contained in:
Rob Winch
2013-05-13 16:47:34 -05:00
parent 30db112d37
commit 9468548116
1279 changed files with 5825 additions and 2 deletions

View File

@@ -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");
}

View File

@@ -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");
}

View File

@@ -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();
}

View File

@@ -46,6 +46,7 @@ public class NopInterceptor implements MethodInterceptor {
++count;
}
@Override
public boolean equals(Object other) {
if (!(other instanceof NopInterceptor)) {
return false;

View File

@@ -59,6 +59,7 @@ public class SerializablePerson implements Person, Serializable {
return o;
}
@Override
public boolean equals(Object other) {
if (!(other instanceof SerializablePerson)) {
return false;