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:
Sebastian Bazley 2009-10-18 12:21:31 +00:00
parent b287ebae61
commit b3cec0c2c3
10 changed files with 10 additions and 0 deletions

View File

@ -42,6 +42,7 @@ public AggregateTranslator(CharSequenceTranslator... translators) {
* 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);

View File

@ -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);

View File

@ -112,6 +112,7 @@ static class CsvEscaper extends CharSequenceTranslator {
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) {

View File

@ -53,6 +53,7 @@ public LookupTranslator(CharSequence[][] lookup) {
/**
* {@inheritDoc}
*/
@Override
public int translate(CharSequence input, int index, Writer out) throws IOException {
int max = longest;
if(index + longest > input.length()) {

View File

@ -55,6 +55,7 @@ public static NumericEntityEscaper outsideOf(int codepointLow, int codepointHigh
/**
* {@inheritDoc}
*/
@Override
public boolean translate(int codepoint, Writer out) throws IOException {
if(between) {
if (codepoint < below || codepoint > above) {

View File

@ -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) == '#') {

View File

@ -101,6 +101,7 @@ static class CsvUnescaper extends CharSequenceTranslator {
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) {

View File

@ -55,6 +55,7 @@ public static UnicodeEscaper between(int codepointLow, int codepointHigh) {
/**
* {@inheritDoc}
*/
@Override
public boolean translate(int codepoint, Writer out) throws IOException {
if(between) {
if (codepoint < below || codepoint > above) {

View File

@ -39,6 +39,7 @@ public boolean isEscapingPlus() {
* {@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') {

View File

@ -35,6 +35,7 @@ public DefaultExceptionContextTest(String name) {
super(name);
}
@Override
public void setUp() {
defaultExceptionContext = new DefaultExceptionContext()
.addLabeledValue("test1", null)