Add missing @Override annotations

This commit is contained in:
Andrew Gaul 2014-05-20 21:18:56 -07:00
parent 1f1f4f0a49
commit 11b778bbb9
2 changed files with 4 additions and 0 deletions

View File

@ -134,6 +134,7 @@ public final class DeserializationConstructorAndReflectiveTypeAdapterFactoryTest
this.bar = bar;
}
@Override
public boolean equals(Object obj) {
ValidatedConstructor other = ValidatedConstructor.class.cast(obj);
return other != null && Objects.equal(foo, other.foo) && Objects.equal(bar, other.bar);
@ -194,6 +195,7 @@ public final class DeserializationConstructorAndReflectiveTypeAdapterFactoryTest
this.bar = bar;
}
@Override
public boolean equals(Object obj) {
RenamedFields other = RenamedFields.class.cast(obj);
return other != null && Objects.equal(foo, other.foo) && Objects.equal(bar, other.bar);
@ -228,6 +230,7 @@ public final class DeserializationConstructorAndReflectiveTypeAdapterFactoryTest
this.y = checkNotNull(y);
}
@Override
public boolean equals(Object obj) {
ComposedObjects other = ComposedObjects.class.cast(obj);
return other != null && Objects.equal(x, other.x) && Objects.equal(y, other.y);

View File

@ -63,6 +63,7 @@ public class OptionalTypeAdapterFactoryTest {
return someOtherValue;
}
@Override
public boolean equals(Object other) {
SimpleBean that = SimpleBean.class.cast(other);
return Objects.equal(value, that.value) && Objects.equal(someOtherValue, that.someOtherValue);