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

@@ -119,6 +119,7 @@ public class RequestMappingHandlerMappingTests {
@Test
public void resolveEmbeddedValuesInPatterns() {
this.handlerMapping.setEmbeddedValueResolver(new StringValueResolver() {
@Override
public String resolveStringValue(String value) {
return "/${pattern}/bar".equals(value) ? "/foo/bar" : value;
}

View File

@@ -54,6 +54,7 @@ public class Country {
}
@Override
public String toString() {
return this.name + "(" + this.isoCode + ")";
}

View File

@@ -41,6 +41,7 @@ public class ItemPet {
return this.name.toUpperCase();
}
@Override
public boolean equals(Object other) {
if (this == other) {
return true;
@@ -52,6 +53,7 @@ public class ItemPet {
return (this.name != null && this.name.equals(otherPet.getName()));
}
@Override
public int hashCode() {
return this.name.hashCode();
}

View File

@@ -532,6 +532,7 @@ public class OptionTagTests extends AbstractHtmlElementTagTests {
return new RulesVariant(rules, variant);
}
@Override
public boolean equals(Object obj) {
if (obj instanceof RulesVariant) {
RulesVariant other = (RulesVariant) obj;
@@ -540,6 +541,7 @@ public class OptionTagTests extends AbstractHtmlElementTagTests {
return false;
}
@Override
public int hashCode() {
return this.toId().hashCode();
}

View File

@@ -33,6 +33,7 @@ enum TestEnum {
return "Value: " + name();
}
@Override
public String toString() {
return "TestEnum: " + name();
}