Add missing @Override markers
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@826421 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b287ebae61
commit
b3cec0c2c3
|
@ -42,6 +42,7 @@ public class AggregateTranslator extends CharSequenceTranslator {
|
|||
* Execution stops with the number of consumed codepoints being returned.
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public int translate(CharSequence input, int index, Writer out) throws IOException {
|
||||
for (CharSequenceTranslator translator : translators) {
|
||||
int consumed = translator.translate(input, index, out);
|
||||
|
|
|
@ -30,6 +30,7 @@ public abstract class CodePointTranslator extends CharSequenceTranslator {
|
|||
* Implementation of translate that maps onto the abstract translate(int, Writer) method.
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public final int translate(CharSequence input, int index, Writer out) throws IOException {
|
||||
int codepoint = Character.codePointAt(input, index);
|
||||
boolean consumed = translate(codepoint, out);
|
||||
|
|
|
@ -112,6 +112,7 @@ public class EscapeUtils {
|
|||
private static final char[] CSV_SEARCH_CHARS = new char[] {CSV_DELIMITER, CSV_QUOTE, CharUtils.CR, CharUtils.LF};
|
||||
|
||||
// TODO: Replace with a RegexTranslator. That should consume the number of characters the regex uses up?
|
||||
@Override
|
||||
public int translate(CharSequence input, int index, Writer out) throws IOException {
|
||||
|
||||
if(index != 0) {
|
||||
|
|
|
@ -53,6 +53,7 @@ public class LookupTranslator extends CharSequenceTranslator {
|
|||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public int translate(CharSequence input, int index, Writer out) throws IOException {
|
||||
int max = longest;
|
||||
if(index + longest > input.length()) {
|
||||
|
|
|
@ -55,6 +55,7 @@ public class NumericEntityEscaper extends CodePointTranslator {
|
|||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public boolean translate(int codepoint, Writer out) throws IOException {
|
||||
if(between) {
|
||||
if (codepoint < below || codepoint > above) {
|
||||
|
|
|
@ -29,6 +29,7 @@ public class NumericEntityUnescaper extends CharSequenceTranslator {
|
|||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public int translate(CharSequence input, int index, Writer out) throws IOException {
|
||||
// TODO: Protect from ArrayIndexOutOfBounds
|
||||
if(input.charAt(index) == '&' && input.charAt(index + 1) == '#') {
|
||||
|
|
|
@ -101,6 +101,7 @@ public class UnescapeUtils {
|
|||
private static final char[] CSV_SEARCH_CHARS = new char[] {CSV_DELIMITER, CSV_QUOTE, CharUtils.CR, CharUtils.LF};
|
||||
|
||||
// TODO: Replace with a RegexTranslator. That should consume the number of characters the regex uses up?
|
||||
@Override
|
||||
public int translate(CharSequence input, int index, Writer out) throws IOException {
|
||||
|
||||
if(index != 0) {
|
||||
|
|
|
@ -55,6 +55,7 @@ public class UnicodeEscaper extends CodePointTranslator {
|
|||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public boolean translate(int codepoint, Writer out) throws IOException {
|
||||
if(between) {
|
||||
if (codepoint < below || codepoint > above) {
|
||||
|
|
|
@ -39,6 +39,7 @@ public class UnicodeUnescaper extends CharSequenceTranslator {
|
|||
* {@inheritDoc}
|
||||
*/
|
||||
// TODO: Handle \\u+0045 variant
|
||||
@Override
|
||||
public int translate(CharSequence input, int index, Writer out) throws IOException {
|
||||
if(input.charAt(index) == '\\') {
|
||||
if( (index + 1 < input.length()) && input.charAt(index + 1) == 'u') {
|
||||
|
|
|
@ -35,6 +35,7 @@ public class DefaultExceptionContextTest extends TestCase {
|
|||
super(name);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setUp() {
|
||||
defaultExceptionContext = new DefaultExceptionContext()
|
||||
.addLabeledValue("test1", null)
|
||||
|
|
Loading…
Reference in New Issue