Add missing @Override annotations

This commit is contained in:
Sam Brannen
2019-08-22 14:48:08 +02:00
parent 0b63db26b7
commit ad6231ad29
108 changed files with 321 additions and 0 deletions

View File

@@ -118,15 +118,18 @@ public class OperatorMatches extends Operator {
this.access = access;
}
@Override
public char charAt(int index) {
this.access.check();
return this.value.charAt(index);
}
@Override
public CharSequence subSequence(int start, int end) {
return new MatcherInput(this.value.subSequence(start, end), this.access);
}
@Override
public int length() {
return this.value.length();
}

View File

@@ -5188,6 +5188,7 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
public static class MyMessage implements Message<String> {
@Override
public MessageHeaders getHeaders() {
MessageHeaders mh = new MessageHeaders();
mh.put("command", "wibble");
@@ -5195,8 +5196,10 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
return mh;
}
@Override
public int[] getIa() { return new int[] {5,3}; }
@Override
@SuppressWarnings({"rawtypes", "unchecked"})
public List getList() {
List l = new ArrayList();
@@ -5253,24 +5256,29 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
private Method method;
@Override
public Class<?>[] getSpecificTargetClasses() {
return new Class<?>[] {Payload2.class};
}
@Override
public boolean canRead(EvaluationContext context, Object target, String name) throws AccessException {
// target is a Payload2 instance
return true;
}
@Override
public TypedValue read(EvaluationContext context, Object target, String name) throws AccessException {
Payload2 payload2 = (Payload2)target;
return new TypedValue(payload2.getField(name));
}
@Override
public boolean canWrite(EvaluationContext context, Object target, String name) throws AccessException {
return false;
}
@Override
public void write(EvaluationContext context, Object target, String name, Object newValue) throws AccessException {
}
@@ -5496,6 +5504,7 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
public Three getThree() {
return three;
}
@Override
public String toString() {
return "instanceof Two";
}
@@ -6108,6 +6117,7 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
return "pb";
}
@Override
public String toString() {
return "sh";
}

View File

@@ -2261,6 +2261,7 @@ public class SpelReproTests extends AbstractExpressionTests {
this.string = string;
}
@Override
public boolean equals(Object other) {
return (this == other || (other instanceof TestClass2 &&
this.string.equals(((TestClass2) other).string)));