Add missing @Override markers

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@753645 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2009-03-14 12:54:15 +00:00
parent c653a71c1e
commit fede75d58f
10 changed files with 62 additions and 0 deletions

View File

@ -185,6 +185,7 @@ public final class CharRange implements Serializable {
* @param obj the object to compare to
* @return true if equal
*/
@Override
public boolean equals(Object obj) {
if (obj == this) {
return true;
@ -201,6 +202,7 @@ public final class CharRange implements Serializable {
*
* @return a suitable hashCode
*/
@Override
public int hashCode() {
return 83 + start + 7 * end + (negated ? 1 : 0);
}
@ -210,6 +212,7 @@ public final class CharRange implements Serializable {
*
* @return string representation of this range
*/
@Override
public String toString() {
if (iToString == null) {
StringBuffer buf = new StringBuffer(4);

View File

@ -265,6 +265,7 @@ public class CharSet implements Serializable {
* @return true if equal
* @since 2.0
*/
@Override
public boolean equals(Object obj) {
if (obj == this) {
return true;
@ -282,6 +283,7 @@ public class CharSet implements Serializable {
* @return a suitable hashCode
* @since 2.0
*/
@Override
public int hashCode() {
return 89 + set.hashCode();
}
@ -291,6 +293,7 @@ public class CharSet implements Serializable {
*
* @return string representation of the set
*/
@Override
public String toString() {
return set.toString();
}

View File

@ -529,6 +529,7 @@ class Entities {
/**
* {@inheritDoc}
*/
@Override
public String name(int value) {
if (value < LOOKUP_TABLE_SIZE) {
return lookupTable()[value];
@ -696,6 +697,7 @@ class Entities {
/**
* {@inheritDoc}
*/
@Override
public void add(String name, int value) {
ensureCapacity(size + 1);
int insertAt = binarySearch(value);
@ -713,6 +715,7 @@ class Entities {
/**
* {@inheritDoc}
*/
@Override
public String name(int value) {
int index = binarySearch(value);
if (index < 0) {

View File

@ -134,6 +134,7 @@ public class NotImplementedException
*
* @since 2.1
*/
@Override
public Throwable getCause() {
return cause;
}
@ -144,6 +145,7 @@ public class NotImplementedException
* @return the error message
* @since 2.1
*/
@Override
public String getMessage() {
if (super.getMessage() != null) {
return super.getMessage();
@ -255,6 +257,7 @@ public class NotImplementedException
*
* @since 2.1
*/
@Override
public void printStackTrace() {
delegate.printStackTrace();
}
@ -266,6 +269,7 @@ public class NotImplementedException
* @param out the stream to write to
* @since 2.1
*/
@Override
public void printStackTrace(PrintStream out) {
delegate.printStackTrace(out);
}
@ -277,6 +281,7 @@ public class NotImplementedException
* @param out the writer to write to
* @since 2.1
*/
@Override
public void printStackTrace(PrintWriter out) {
delegate.printStackTrace(out);
}

View File

@ -103,6 +103,7 @@ public class HashCodeBuilder {
* @since 2.3
*/
private static ThreadLocal registry = new ThreadLocal() {
@Override
protected Object initialValue() {
// The HashSet implementation is not synchronized,
// which is just what we need here.

View File

@ -49,6 +49,7 @@ final class IDKey {
* returns hashcode - i.e. the system identity hashcode.
* @return the hashcode
*/
@Override
public int hashCode() {
return id;
}
@ -58,6 +59,7 @@ final class IDKey {
* @param other
* @return if the instances are for the same object
*/
@Override
public boolean equals(Object other) {
if (!(other instanceof IDKey)) {
return false;

View File

@ -751,6 +751,7 @@ public class ReflectionToStringBuilder extends ToStringBuilder {
*
* @return the built string
*/
@Override
public String toString() {
if (this.getObject() == null) {
return this.getStyle().getNullText();

View File

@ -54,6 +54,7 @@ public class StandardToStringStyle extends ToStringStyle {
*
* @return the current useClassName flag
*/
@Override
public boolean isUseClassName() {
return super.isUseClassName();
}
@ -63,6 +64,7 @@ public class StandardToStringStyle extends ToStringStyle {
*
* @param useClassName the new useClassName flag
*/
@Override
public void setUseClassName(boolean useClassName) {
super.setUseClassName(useClassName);
}
@ -75,6 +77,7 @@ public class StandardToStringStyle extends ToStringStyle {
* @return the current useShortClassName flag
* @since 2.0
*/
@Override
public boolean isUseShortClassName() {
return super.isUseShortClassName();
}
@ -86,6 +89,7 @@ public class StandardToStringStyle extends ToStringStyle {
* @deprecated Use {@link #isUseShortClassName()}
* Method will be removed in Commons Lang 3.0.
*/
@Override
public boolean isShortClassName() {
return super.isUseShortClassName();
}
@ -96,6 +100,7 @@ public class StandardToStringStyle extends ToStringStyle {
* @param useShortClassName the new useShortClassName flag
* @since 2.0
*/
@Override
public void setUseShortClassName(boolean useShortClassName) {
super.setUseShortClassName(useShortClassName);
}
@ -107,6 +112,7 @@ public class StandardToStringStyle extends ToStringStyle {
* @deprecated Use {@link #setUseShortClassName(boolean)}
* Method will be removed in Commons Lang 3.0.
*/
@Override
public void setShortClassName(boolean shortClassName) {
super.setUseShortClassName(shortClassName);
}
@ -117,6 +123,7 @@ public class StandardToStringStyle extends ToStringStyle {
* <p>Gets whether to use the identity hash code.</p>
* @return the current useIdentityHashCode flag
*/
@Override
public boolean isUseIdentityHashCode() {
return super.isUseIdentityHashCode();
}
@ -126,6 +133,7 @@ public class StandardToStringStyle extends ToStringStyle {
*
* @param useIdentityHashCode the new useIdentityHashCode flag
*/
@Override
public void setUseIdentityHashCode(boolean useIdentityHashCode) {
super.setUseIdentityHashCode(useIdentityHashCode);
}
@ -137,6 +145,7 @@ public class StandardToStringStyle extends ToStringStyle {
*
* @return the current useFieldNames flag
*/
@Override
public boolean isUseFieldNames() {
return super.isUseFieldNames();
}
@ -146,6 +155,7 @@ public class StandardToStringStyle extends ToStringStyle {
*
* @param useFieldNames the new useFieldNames flag
*/
@Override
public void setUseFieldNames(boolean useFieldNames) {
super.setUseFieldNames(useFieldNames);
}
@ -158,6 +168,7 @@ public class StandardToStringStyle extends ToStringStyle {
*
* @return the current defaultFullDetail flag
*/
@Override
public boolean isDefaultFullDetail() {
return super.isDefaultFullDetail();
}
@ -168,6 +179,7 @@ public class StandardToStringStyle extends ToStringStyle {
*
* @param defaultFullDetail the new defaultFullDetail flag
*/
@Override
public void setDefaultFullDetail(boolean defaultFullDetail) {
super.setDefaultFullDetail(defaultFullDetail);
}
@ -179,6 +191,7 @@ public class StandardToStringStyle extends ToStringStyle {
*
* @return the current array content detail setting
*/
@Override
public boolean isArrayContentDetail() {
return super.isArrayContentDetail();
}
@ -188,6 +201,7 @@ public class StandardToStringStyle extends ToStringStyle {
*
* @param arrayContentDetail the new arrayContentDetail flag
*/
@Override
public void setArrayContentDetail(boolean arrayContentDetail) {
super.setArrayContentDetail(arrayContentDetail);
}
@ -199,6 +213,7 @@ public class StandardToStringStyle extends ToStringStyle {
*
* @return the current array start text
*/
@Override
public String getArrayStart() {
return super.getArrayStart();
}
@ -211,6 +226,7 @@ public class StandardToStringStyle extends ToStringStyle {
*
* @param arrayStart the new array start text
*/
@Override
public void setArrayStart(String arrayStart) {
super.setArrayStart(arrayStart);
}
@ -222,6 +238,7 @@ public class StandardToStringStyle extends ToStringStyle {
*
* @return the current array end text
*/
@Override
public String getArrayEnd() {
return super.getArrayEnd();
}
@ -234,6 +251,7 @@ public class StandardToStringStyle extends ToStringStyle {
*
* @param arrayEnd the new array end text
*/
@Override
public void setArrayEnd(String arrayEnd) {
super.setArrayEnd(arrayEnd);
}
@ -245,6 +263,7 @@ public class StandardToStringStyle extends ToStringStyle {
*
* @return the current array separator text
*/
@Override
public String getArraySeparator() {
return super.getArraySeparator();
}
@ -257,6 +276,7 @@ public class StandardToStringStyle extends ToStringStyle {
*
* @param arraySeparator the new array separator text
*/
@Override
public void setArraySeparator(String arraySeparator) {
super.setArraySeparator(arraySeparator);
}
@ -268,6 +288,7 @@ public class StandardToStringStyle extends ToStringStyle {
*
* @return the current content start text
*/
@Override
public String getContentStart() {
return super.getContentStart();
}
@ -280,6 +301,7 @@ public class StandardToStringStyle extends ToStringStyle {
*
* @param contentStart the new content start text
*/
@Override
public void setContentStart(String contentStart) {
super.setContentStart(contentStart);
}
@ -291,6 +313,7 @@ public class StandardToStringStyle extends ToStringStyle {
*
* @return the current content end text
*/
@Override
public String getContentEnd() {
return super.getContentEnd();
}
@ -303,6 +326,7 @@ public class StandardToStringStyle extends ToStringStyle {
*
* @param contentEnd the new content end text
*/
@Override
public void setContentEnd(String contentEnd) {
super.setContentEnd(contentEnd);
}
@ -314,6 +338,7 @@ public class StandardToStringStyle extends ToStringStyle {
*
* @return the current field name value separator text
*/
@Override
public String getFieldNameValueSeparator() {
return super.getFieldNameValueSeparator();
}
@ -326,6 +351,7 @@ public class StandardToStringStyle extends ToStringStyle {
*
* @param fieldNameValueSeparator the new field name value separator text
*/
@Override
public void setFieldNameValueSeparator(String fieldNameValueSeparator) {
super.setFieldNameValueSeparator(fieldNameValueSeparator);
}
@ -337,6 +363,7 @@ public class StandardToStringStyle extends ToStringStyle {
*
* @return the current field separator text
*/
@Override
public String getFieldSeparator() {
return super.getFieldSeparator();
}
@ -349,6 +376,7 @@ public class StandardToStringStyle extends ToStringStyle {
*
* @param fieldSeparator the new field separator text
*/
@Override
public void setFieldSeparator(String fieldSeparator) {
super.setFieldSeparator(fieldSeparator);
}
@ -362,6 +390,7 @@ public class StandardToStringStyle extends ToStringStyle {
* @return the fieldSeparatorAtStart flag
* @since 2.0
*/
@Override
public boolean isFieldSeparatorAtStart() {
return super.isFieldSeparatorAtStart();
}
@ -373,6 +402,7 @@ public class StandardToStringStyle extends ToStringStyle {
* @param fieldSeparatorAtStart the fieldSeparatorAtStart flag
* @since 2.0
*/
@Override
public void setFieldSeparatorAtStart(boolean fieldSeparatorAtStart) {
super.setFieldSeparatorAtStart(fieldSeparatorAtStart);
}
@ -386,6 +416,7 @@ public class StandardToStringStyle extends ToStringStyle {
* @return fieldSeparatorAtEnd flag
* @since 2.0
*/
@Override
public boolean isFieldSeparatorAtEnd() {
return super.isFieldSeparatorAtEnd();
}
@ -397,6 +428,7 @@ public class StandardToStringStyle extends ToStringStyle {
* @param fieldSeparatorAtEnd the fieldSeparatorAtEnd flag
* @since 2.0
*/
@Override
public void setFieldSeparatorAtEnd(boolean fieldSeparatorAtEnd) {
super.setFieldSeparatorAtEnd(fieldSeparatorAtEnd);
}
@ -408,6 +440,7 @@ public class StandardToStringStyle extends ToStringStyle {
*
* @return the current text to output when <code>null</code> found
*/
@Override
public String getNullText() {
return super.getNullText();
}
@ -420,6 +453,7 @@ public class StandardToStringStyle extends ToStringStyle {
*
* @param nullText the new text to output when <code>null</code> found
*/
@Override
public void setNullText(String nullText) {
super.setNullText(nullText);
}
@ -434,6 +468,7 @@ public class StandardToStringStyle extends ToStringStyle {
*
* @return the current start of size text
*/
@Override
public String getSizeStartText() {
return super.getSizeStartText();
}
@ -449,6 +484,7 @@ public class StandardToStringStyle extends ToStringStyle {
*
* @param sizeStartText the new start of size text
*/
@Override
public void setSizeStartText(String sizeStartText) {
super.setSizeStartText(sizeStartText);
}
@ -463,6 +499,7 @@ public class StandardToStringStyle extends ToStringStyle {
*
* @return the current end of size text
*/
@Override
public String getSizeEndText() {
return super.getSizeEndText();
}
@ -478,6 +515,7 @@ public class StandardToStringStyle extends ToStringStyle {
*
* @param sizeEndText the new end of size text
*/
@Override
public void setSizeEndText(String sizeEndText) {
super.setSizeEndText(sizeEndText);
}
@ -492,6 +530,7 @@ public class StandardToStringStyle extends ToStringStyle {
*
* @return the current start of summary text
*/
@Override
public String getSummaryObjectStartText() {
return super.getSummaryObjectStartText();
}
@ -507,6 +546,7 @@ public class StandardToStringStyle extends ToStringStyle {
*
* @param summaryObjectStartText the new start of summary text
*/
@Override
public void setSummaryObjectStartText(String summaryObjectStartText) {
super.setSummaryObjectStartText(summaryObjectStartText);
}
@ -521,6 +561,7 @@ public class StandardToStringStyle extends ToStringStyle {
*
* @return the current end of summary text
*/
@Override
public String getSummaryObjectEndText() {
return super.getSummaryObjectEndText();
}
@ -536,6 +577,7 @@ public class StandardToStringStyle extends ToStringStyle {
*
* @param summaryObjectEndText the new end of summary text
*/
@Override
public void setSummaryObjectEndText(String summaryObjectEndText) {
super.setSummaryObjectEndText(summaryObjectEndText);
}

View File

@ -1045,6 +1045,7 @@ public class ToStringBuilder {
*
* @return the String <code>toString</code>
*/
@Override
public String toString() {
if (this.getObject() == null) {
this.getStringBuffer().append(this.getStyle().getNullText());

View File

@ -134,6 +134,7 @@ public abstract class ToStringStyle implements Serializable {
* </p>
*/
private static ThreadLocal registry = new ThreadLocal() {
@Override
protected Object initialValue() {
// The HashSet implementation is not synchronized,
// which is just what we need here.