mirror of
https://github.com/apache/commons-lang.git
synced 2025-02-08 02:58:33 +00:00
Add dummy serialVersionUIDs to avoid IDE warnings
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1533541 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7fac289ed9
commit
7b6c2cc0bd
@ -28,6 +28,8 @@
|
|||||||
public class ToStringStyleTest {
|
public class ToStringStyleTest {
|
||||||
|
|
||||||
private static class ToStringStyleImpl extends ToStringStyle {
|
private static class ToStringStyleImpl extends ToStringStyle {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------
|
//-----------------------------------------------------------------------
|
||||||
|
@ -80,7 +80,8 @@ public void testContextedExceptionStringThrowable() {
|
|||||||
@Test
|
@Test
|
||||||
public void testContextedExceptionStringThrowableContext() {
|
public void testContextedExceptionStringThrowableContext() {
|
||||||
// Use an anonymous subclass to make sure users can provide custom implementations
|
// Use an anonymous subclass to make sure users can provide custom implementations
|
||||||
exceptionContext = new ContextedRuntimeException(TEST_MESSAGE_2, new Exception(TEST_MESSAGE), new DefaultExceptionContext() {});
|
exceptionContext = new ContextedRuntimeException(TEST_MESSAGE_2, new Exception(TEST_MESSAGE),
|
||||||
|
new DefaultExceptionContext() {private static final long serialVersionUID = 1L;});
|
||||||
final String message = exceptionContext.getMessage();
|
final String message = exceptionContext.getMessage();
|
||||||
final String trace = ExceptionUtils.getStackTrace(exceptionContext);
|
final String trace = ExceptionUtils.getStackTrace(exceptionContext);
|
||||||
assertTrue(trace.indexOf("ContextedException")>=0);
|
assertTrue(trace.indexOf("ContextedException")>=0);
|
||||||
|
@ -488,6 +488,8 @@ public void test_getRootCauseMessage_Throwable() {
|
|||||||
* of <code>Throwable</code>.
|
* of <code>Throwable</code>.
|
||||||
*/
|
*/
|
||||||
private static class ExceptionWithCause extends Exception {
|
private static class ExceptionWithCause extends Exception {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
private Throwable cause;
|
private Throwable cause;
|
||||||
|
|
||||||
public ExceptionWithCause(final String str, final Throwable cause) {
|
public ExceptionWithCause(final String str, final Throwable cause) {
|
||||||
@ -516,7 +518,9 @@ public void setCause(final Throwable cause) {
|
|||||||
* return value of <code>Throwable</code>.
|
* return value of <code>Throwable</code>.
|
||||||
*/
|
*/
|
||||||
private static class ExceptionWithoutCause extends Exception {
|
private static class ExceptionWithoutCause extends Exception {
|
||||||
@SuppressWarnings("unused")
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@SuppressWarnings("unused")
|
||||||
public void getTargetException() {
|
public void getTargetException() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -524,6 +528,8 @@ public void getTargetException() {
|
|||||||
// Temporary classes to allow the nested exception code to be removed
|
// Temporary classes to allow the nested exception code to be removed
|
||||||
// prior to a rewrite of this test class.
|
// prior to a rewrite of this test class.
|
||||||
private static class NestableException extends Exception {
|
private static class NestableException extends Exception {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
public NestableException() { super(); }
|
public NestableException() { super(); }
|
||||||
public NestableException(final Throwable t) { super(t); }
|
public NestableException(final Throwable t) { super(t); }
|
||||||
|
@ -37,7 +37,9 @@ public class CompositeFormatTest {
|
|||||||
public void testCompositeFormat() {
|
public void testCompositeFormat() {
|
||||||
|
|
||||||
final Format parser = new Format() {
|
final Format parser = new Format() {
|
||||||
@Override
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@Override
|
||||||
public StringBuffer format(final Object obj, final StringBuffer toAppendTo, final FieldPosition pos) {
|
public StringBuffer format(final Object obj, final StringBuffer toAppendTo, final FieldPosition pos) {
|
||||||
throw new UnsupportedOperationException("Not implemented");
|
throw new UnsupportedOperationException("Not implemented");
|
||||||
}
|
}
|
||||||
@ -49,7 +51,9 @@ public Object parseObject(final String source, final ParsePosition pos) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
final Format formatter = new Format() {
|
final Format formatter = new Format() {
|
||||||
@Override
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@Override
|
||||||
public StringBuffer format(final Object obj, final StringBuffer toAppendTo, final FieldPosition pos) {
|
public StringBuffer format(final Object obj, final StringBuffer toAppendTo, final FieldPosition pos) {
|
||||||
return null; // do nothing
|
return null; // do nothing
|
||||||
}
|
}
|
||||||
|
@ -384,6 +384,8 @@ private MessageFormat createMessageFormat(final String pattern, final Locale loc
|
|||||||
* {@link Format} implementation which converts to lower case.
|
* {@link Format} implementation which converts to lower case.
|
||||||
*/
|
*/
|
||||||
private static class LowerCaseFormat extends Format {
|
private static class LowerCaseFormat extends Format {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public StringBuffer format(final Object obj, final StringBuffer toAppendTo, final FieldPosition pos) {
|
public StringBuffer format(final Object obj, final StringBuffer toAppendTo, final FieldPosition pos) {
|
||||||
return toAppendTo.append(((String)obj).toLowerCase());
|
return toAppendTo.append(((String)obj).toLowerCase());
|
||||||
@ -396,6 +398,8 @@ public StringBuffer format(final Object obj, final StringBuffer toAppendTo, fina
|
|||||||
* {@link Format} implementation which converts to upper case.
|
* {@link Format} implementation which converts to upper case.
|
||||||
*/
|
*/
|
||||||
private static class UpperCaseFormat extends Format {
|
private static class UpperCaseFormat extends Format {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public StringBuffer format(final Object obj, final StringBuffer toAppendTo, final FieldPosition pos) {
|
public StringBuffer format(final Object obj, final StringBuffer toAppendTo, final FieldPosition pos) {
|
||||||
return toAppendTo.append(((String)obj).toUpperCase());
|
return toAppendTo.append(((String)obj).toUpperCase());
|
||||||
@ -443,6 +447,8 @@ public Format getFormat(final String name, final String arguments, final Locale
|
|||||||
* Alternative ExtendedMessageFormat impl.
|
* Alternative ExtendedMessageFormat impl.
|
||||||
*/
|
*/
|
||||||
private static class OtherExtendedMessageFormat extends ExtendedMessageFormat {
|
private static class OtherExtendedMessageFormat extends ExtendedMessageFormat {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
public OtherExtendedMessageFormat(final String pattern, final Locale locale,
|
public OtherExtendedMessageFormat(final String pattern, final Locale locale,
|
||||||
final Map<String, ? extends FormatFactory> registry) {
|
final Map<String, ? extends FormatFactory> registry) {
|
||||||
super(pattern, locale, registry);
|
super(pattern, locale, registry);
|
||||||
|
@ -548,6 +548,8 @@ public void testAppend_PrimitiveNumber() {
|
|||||||
public void testAppendln_FormattedString() {
|
public void testAppendln_FormattedString() {
|
||||||
final int[] count = new int[2];
|
final int[] count = new int[2];
|
||||||
final StrBuilder sb = new StrBuilder() {
|
final StrBuilder sb = new StrBuilder() {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public StrBuilder append(final String str) {
|
public StrBuilder append(final String str) {
|
||||||
count[0]++;
|
count[0]++;
|
||||||
@ -584,6 +586,8 @@ public void testAppendln_Object() {
|
|||||||
public void testAppendln_String() {
|
public void testAppendln_String() {
|
||||||
final int[] count = new int[2];
|
final int[] count = new int[2];
|
||||||
final StrBuilder sb = new StrBuilder() {
|
final StrBuilder sb = new StrBuilder() {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public StrBuilder append(final String str) {
|
public StrBuilder append(final String str) {
|
||||||
count[0]++;
|
count[0]++;
|
||||||
@ -606,6 +610,8 @@ public StrBuilder appendNewLine() {
|
|||||||
public void testAppendln_String_int_int() {
|
public void testAppendln_String_int_int() {
|
||||||
final int[] count = new int[2];
|
final int[] count = new int[2];
|
||||||
final StrBuilder sb = new StrBuilder() {
|
final StrBuilder sb = new StrBuilder() {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public StrBuilder append(final String str, final int startIndex, final int length) {
|
public StrBuilder append(final String str, final int startIndex, final int length) {
|
||||||
count[0]++;
|
count[0]++;
|
||||||
@ -628,6 +634,8 @@ public StrBuilder appendNewLine() {
|
|||||||
public void testAppendln_StringBuffer() {
|
public void testAppendln_StringBuffer() {
|
||||||
final int[] count = new int[2];
|
final int[] count = new int[2];
|
||||||
final StrBuilder sb = new StrBuilder() {
|
final StrBuilder sb = new StrBuilder() {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public StrBuilder append(final StringBuffer str) {
|
public StrBuilder append(final StringBuffer str) {
|
||||||
count[0]++;
|
count[0]++;
|
||||||
@ -650,6 +658,8 @@ public StrBuilder appendNewLine() {
|
|||||||
public void testAppendln_StringBuilder() {
|
public void testAppendln_StringBuilder() {
|
||||||
final int[] count = new int[2];
|
final int[] count = new int[2];
|
||||||
final StrBuilder sb = new StrBuilder() {
|
final StrBuilder sb = new StrBuilder() {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public StrBuilder append(final StringBuilder str) {
|
public StrBuilder append(final StringBuilder str) {
|
||||||
count[0]++;
|
count[0]++;
|
||||||
@ -672,6 +682,8 @@ public StrBuilder appendNewLine() {
|
|||||||
public void testAppendln_StringBuffer_int_int() {
|
public void testAppendln_StringBuffer_int_int() {
|
||||||
final int[] count = new int[2];
|
final int[] count = new int[2];
|
||||||
final StrBuilder sb = new StrBuilder() {
|
final StrBuilder sb = new StrBuilder() {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public StrBuilder append(final StringBuffer str, final int startIndex, final int length) {
|
public StrBuilder append(final StringBuffer str, final int startIndex, final int length) {
|
||||||
count[0]++;
|
count[0]++;
|
||||||
@ -694,6 +706,8 @@ public StrBuilder appendNewLine() {
|
|||||||
public void testAppendln_StringBuilder_int_int() {
|
public void testAppendln_StringBuilder_int_int() {
|
||||||
final int[] count = new int[2];
|
final int[] count = new int[2];
|
||||||
final StrBuilder sb = new StrBuilder() {
|
final StrBuilder sb = new StrBuilder() {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public StrBuilder append(final StringBuilder str, final int startIndex, final int length) {
|
public StrBuilder append(final StringBuilder str, final int startIndex, final int length) {
|
||||||
count[0]++;
|
count[0]++;
|
||||||
@ -716,6 +730,8 @@ public StrBuilder appendNewLine() {
|
|||||||
public void testAppendln_StrBuilder() {
|
public void testAppendln_StrBuilder() {
|
||||||
final int[] count = new int[2];
|
final int[] count = new int[2];
|
||||||
final StrBuilder sb = new StrBuilder() {
|
final StrBuilder sb = new StrBuilder() {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public StrBuilder append(final StrBuilder str) {
|
public StrBuilder append(final StrBuilder str) {
|
||||||
count[0]++;
|
count[0]++;
|
||||||
@ -738,6 +754,8 @@ public StrBuilder appendNewLine() {
|
|||||||
public void testAppendln_StrBuilder_int_int() {
|
public void testAppendln_StrBuilder_int_int() {
|
||||||
final int[] count = new int[2];
|
final int[] count = new int[2];
|
||||||
final StrBuilder sb = new StrBuilder() {
|
final StrBuilder sb = new StrBuilder() {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public StrBuilder append(final StrBuilder str, final int startIndex, final int length) {
|
public StrBuilder append(final StrBuilder str, final int startIndex, final int length) {
|
||||||
count[0]++;
|
count[0]++;
|
||||||
@ -760,6 +778,8 @@ public StrBuilder appendNewLine() {
|
|||||||
public void testAppendln_CharArray() {
|
public void testAppendln_CharArray() {
|
||||||
final int[] count = new int[2];
|
final int[] count = new int[2];
|
||||||
final StrBuilder sb = new StrBuilder() {
|
final StrBuilder sb = new StrBuilder() {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public StrBuilder append(final char[] str) {
|
public StrBuilder append(final char[] str) {
|
||||||
count[0]++;
|
count[0]++;
|
||||||
@ -782,6 +802,8 @@ public StrBuilder appendNewLine() {
|
|||||||
public void testAppendln_CharArray_int_int() {
|
public void testAppendln_CharArray_int_int() {
|
||||||
final int[] count = new int[2];
|
final int[] count = new int[2];
|
||||||
final StrBuilder sb = new StrBuilder() {
|
final StrBuilder sb = new StrBuilder() {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public StrBuilder append(final char[] str, final int startIndex, final int length) {
|
public StrBuilder append(final char[] str, final int startIndex, final int length) {
|
||||||
count[0]++;
|
count[0]++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user