mirror of
https://github.com/apache/commons-lang.git
synced 2025-02-09 11:34:55 +00:00
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 AggregateTranslator(CharSequenceTranslator... translators) {
|
|||||||
* Execution stops with the number of consumed codepoints being returned.
|
* Execution stops with the number of consumed codepoints being returned.
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public int translate(CharSequence input, int index, Writer out) throws IOException {
|
public int translate(CharSequence input, int index, Writer out) throws IOException {
|
||||||
for (CharSequenceTranslator translator : translators) {
|
for (CharSequenceTranslator translator : translators) {
|
||||||
int consumed = translator.translate(input, index, out);
|
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.
|
* Implementation of translate that maps onto the abstract translate(int, Writer) method.
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public final int translate(CharSequence input, int index, Writer out) throws IOException {
|
public final int translate(CharSequence input, int index, Writer out) throws IOException {
|
||||||
int codepoint = Character.codePointAt(input, index);
|
int codepoint = Character.codePointAt(input, index);
|
||||||
boolean consumed = translate(codepoint, out);
|
boolean consumed = translate(codepoint, out);
|
||||||
|
@ -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};
|
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?
|
// 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 {
|
public int translate(CharSequence input, int index, Writer out) throws IOException {
|
||||||
|
|
||||||
if(index != 0) {
|
if(index != 0) {
|
||||||
|
@ -53,6 +53,7 @@ public LookupTranslator(CharSequence[][] lookup) {
|
|||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public int translate(CharSequence input, int index, Writer out) throws IOException {
|
public int translate(CharSequence input, int index, Writer out) throws IOException {
|
||||||
int max = longest;
|
int max = longest;
|
||||||
if(index + longest > input.length()) {
|
if(index + longest > input.length()) {
|
||||||
|
@ -55,6 +55,7 @@ public static NumericEntityEscaper outsideOf(int codepointLow, int codepointHigh
|
|||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public boolean translate(int codepoint, Writer out) throws IOException {
|
public boolean translate(int codepoint, Writer out) throws IOException {
|
||||||
if(between) {
|
if(between) {
|
||||||
if (codepoint < below || codepoint > above) {
|
if (codepoint < below || codepoint > above) {
|
||||||
|
@ -29,6 +29,7 @@ public class NumericEntityUnescaper extends CharSequenceTranslator {
|
|||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public int translate(CharSequence input, int index, Writer out) throws IOException {
|
public int translate(CharSequence input, int index, Writer out) throws IOException {
|
||||||
// TODO: Protect from ArrayIndexOutOfBounds
|
// TODO: Protect from ArrayIndexOutOfBounds
|
||||||
if(input.charAt(index) == '&' && input.charAt(index + 1) == '#') {
|
if(input.charAt(index) == '&' && input.charAt(index + 1) == '#') {
|
||||||
|
@ -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};
|
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?
|
// 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 {
|
public int translate(CharSequence input, int index, Writer out) throws IOException {
|
||||||
|
|
||||||
if(index != 0) {
|
if(index != 0) {
|
||||||
|
@ -55,6 +55,7 @@ public static UnicodeEscaper between(int codepointLow, int codepointHigh) {
|
|||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public boolean translate(int codepoint, Writer out) throws IOException {
|
public boolean translate(int codepoint, Writer out) throws IOException {
|
||||||
if(between) {
|
if(between) {
|
||||||
if (codepoint < below || codepoint > above) {
|
if (codepoint < below || codepoint > above) {
|
||||||
|
@ -39,6 +39,7 @@ public boolean isEscapingPlus() {
|
|||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
// TODO: Handle \\u+0045 variant
|
// TODO: Handle \\u+0045 variant
|
||||||
|
@Override
|
||||||
public int translate(CharSequence input, int index, Writer out) throws IOException {
|
public int translate(CharSequence input, int index, Writer out) throws IOException {
|
||||||
if(input.charAt(index) == '\\') {
|
if(input.charAt(index) == '\\') {
|
||||||
if( (index + 1 < input.length()) && input.charAt(index + 1) == 'u') {
|
if( (index + 1 < input.length()) && input.charAt(index + 1) == 'u') {
|
||||||
|
@ -35,6 +35,7 @@ public DefaultExceptionContextTest(String name) {
|
|||||||
super(name);
|
super(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void setUp() {
|
public void setUp() {
|
||||||
defaultExceptionContext = new DefaultExceptionContext()
|
defaultExceptionContext = new DefaultExceptionContext()
|
||||||
.addLabeledValue("test1", null)
|
.addLabeledValue("test1", null)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user