Add @Override to remaining source files
Issue: SPR-10130
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -54,6 +54,7 @@ public class Country {
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return this.name + "(" + this.isoCode + ")";
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -33,6 +33,7 @@ enum TestEnum {
|
||||
return "Value: " + name();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TestEnum: " + name();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user