Tab police (added by pesky IDE)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1582699 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
03653e3911
commit
0f1e07e1fe
|
@ -1244,7 +1244,7 @@ public class ArrayUtilsTest {
|
|||
|
||||
}
|
||||
|
||||
@Test
|
||||
@Test
|
||||
public void testSubarrayFloat() {
|
||||
final float[] nullArray = null;
|
||||
final float[] array = { 10, 11, 12, 13, 14, 15 };
|
||||
|
|
|
@ -378,13 +378,13 @@ public class LocaleUtilsTest {
|
|||
*/
|
||||
@Test
|
||||
public void testThreeCharsLocale() {
|
||||
for (String str : Arrays.asList("udm", "tet")) {
|
||||
Locale locale = LocaleUtils.toLocale(str);
|
||||
assertNotNull(locale);
|
||||
assertEquals(str, locale.getLanguage());
|
||||
assertTrue(StringUtils.isBlank(locale.getCountry()));
|
||||
assertEquals(new Locale(str), locale);
|
||||
}
|
||||
for (String str : Arrays.asList("udm", "tet")) {
|
||||
Locale locale = LocaleUtils.toLocale(str);
|
||||
assertNotNull(locale);
|
||||
assertEquals(str, locale.getLanguage());
|
||||
assertTrue(StringUtils.isBlank(locale.getCountry()));
|
||||
assertEquals(new Locale(str), locale);
|
||||
}
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
|
|
@ -28,7 +28,7 @@ import org.junit.Test;
|
|||
public class ToStringStyleTest {
|
||||
|
||||
private static class ToStringStyleImpl extends ToStringStyle {
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -81,7 +81,7 @@ public class ContextedRuntimeExceptionTest extends AbstractExceptionContextTest<
|
|||
public void testContextedExceptionStringThrowableContext() {
|
||||
// Use an anonymous subclass to make sure users can provide custom implementations
|
||||
exceptionContext = new ContextedRuntimeException(TEST_MESSAGE_2, new Exception(TEST_MESSAGE),
|
||||
new DefaultExceptionContext() {private static final long serialVersionUID = 1L;});
|
||||
new DefaultExceptionContext() {private static final long serialVersionUID = 1L;});
|
||||
final String message = exceptionContext.getMessage();
|
||||
final String trace = ExceptionUtils.getStackTrace(exceptionContext);
|
||||
assertTrue(trace.indexOf("ContextedException")>=0);
|
||||
|
|
|
@ -488,7 +488,7 @@ public class ExceptionUtilsTest {
|
|||
* of <code>Throwable</code>.
|
||||
*/
|
||||
private static class ExceptionWithCause extends Exception {
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private Throwable cause;
|
||||
|
||||
|
@ -518,7 +518,7 @@ public class ExceptionUtilsTest {
|
|||
* return value of <code>Throwable</code>.
|
||||
*/
|
||||
private static class ExceptionWithoutCause extends Exception {
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
public void getTargetException() {
|
||||
|
@ -528,7 +528,7 @@ public class ExceptionUtilsTest {
|
|||
// Temporary classes to allow the nested exception code to be removed
|
||||
// prior to a rewrite of this test class.
|
||||
private static class NestableException extends Exception {
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
public NestableException() { super(); }
|
||||
|
|
|
@ -37,9 +37,9 @@ public class CompositeFormatTest {
|
|||
public void testCompositeFormat() {
|
||||
|
||||
final Format parser = new Format() {
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Override
|
||||
@Override
|
||||
public StringBuffer format(final Object obj, final StringBuffer toAppendTo, final FieldPosition pos) {
|
||||
throw new UnsupportedOperationException("Not implemented");
|
||||
}
|
||||
|
@ -51,9 +51,9 @@ public class CompositeFormatTest {
|
|||
};
|
||||
|
||||
final Format formatter = new Format() {
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Override
|
||||
@Override
|
||||
public StringBuffer format(final Object obj, final StringBuffer toAppendTo, final FieldPosition pos) {
|
||||
return null; // do nothing
|
||||
}
|
||||
|
|
|
@ -394,7 +394,7 @@ public class ExtendedMessageFormatTest {
|
|||
* {@link Format} implementation which converts to lower case.
|
||||
*/
|
||||
private static class LowerCaseFormat extends Format {
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Override
|
||||
public StringBuffer format(final Object obj, final StringBuffer toAppendTo, final FieldPosition pos) {
|
||||
|
@ -408,7 +408,7 @@ public class ExtendedMessageFormatTest {
|
|||
* {@link Format} implementation which converts to upper case.
|
||||
*/
|
||||
private static class UpperCaseFormat extends Format {
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Override
|
||||
public StringBuffer format(final Object obj, final StringBuffer toAppendTo, final FieldPosition pos) {
|
||||
|
@ -457,7 +457,7 @@ public class ExtendedMessageFormatTest {
|
|||
* Alternative ExtendedMessageFormat impl.
|
||||
*/
|
||||
private static class OtherExtendedMessageFormat extends ExtendedMessageFormat {
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public OtherExtendedMessageFormat(final String pattern, final Locale locale,
|
||||
final Map<String, ? extends FormatFactory> registry) {
|
||||
|
|
|
@ -548,7 +548,7 @@ public class StrBuilderAppendInsertTest {
|
|||
public void testAppendln_FormattedString() {
|
||||
final int[] count = new int[2];
|
||||
final StrBuilder sb = new StrBuilder() {
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Override
|
||||
public StrBuilder append(final String str) {
|
||||
|
@ -586,7 +586,7 @@ public class StrBuilderAppendInsertTest {
|
|||
public void testAppendln_String() {
|
||||
final int[] count = new int[2];
|
||||
final StrBuilder sb = new StrBuilder() {
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Override
|
||||
public StrBuilder append(final String str) {
|
||||
|
@ -610,7 +610,7 @@ public class StrBuilderAppendInsertTest {
|
|||
public void testAppendln_String_int_int() {
|
||||
final int[] count = new int[2];
|
||||
final StrBuilder sb = new StrBuilder() {
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Override
|
||||
public StrBuilder append(final String str, final int startIndex, final int length) {
|
||||
|
@ -634,7 +634,7 @@ public class StrBuilderAppendInsertTest {
|
|||
public void testAppendln_StringBuffer() {
|
||||
final int[] count = new int[2];
|
||||
final StrBuilder sb = new StrBuilder() {
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Override
|
||||
public StrBuilder append(final StringBuffer str) {
|
||||
|
@ -658,7 +658,7 @@ public class StrBuilderAppendInsertTest {
|
|||
public void testAppendln_StringBuilder() {
|
||||
final int[] count = new int[2];
|
||||
final StrBuilder sb = new StrBuilder() {
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Override
|
||||
public StrBuilder append(final StringBuilder str) {
|
||||
|
@ -682,7 +682,7 @@ public class StrBuilderAppendInsertTest {
|
|||
public void testAppendln_StringBuffer_int_int() {
|
||||
final int[] count = new int[2];
|
||||
final StrBuilder sb = new StrBuilder() {
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Override
|
||||
public StrBuilder append(final StringBuffer str, final int startIndex, final int length) {
|
||||
|
@ -706,7 +706,7 @@ public class StrBuilderAppendInsertTest {
|
|||
public void testAppendln_StringBuilder_int_int() {
|
||||
final int[] count = new int[2];
|
||||
final StrBuilder sb = new StrBuilder() {
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Override
|
||||
public StrBuilder append(final StringBuilder str, final int startIndex, final int length) {
|
||||
|
@ -730,7 +730,7 @@ public class StrBuilderAppendInsertTest {
|
|||
public void testAppendln_StrBuilder() {
|
||||
final int[] count = new int[2];
|
||||
final StrBuilder sb = new StrBuilder() {
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Override
|
||||
public StrBuilder append(final StrBuilder str) {
|
||||
|
@ -754,7 +754,7 @@ public class StrBuilderAppendInsertTest {
|
|||
public void testAppendln_StrBuilder_int_int() {
|
||||
final int[] count = new int[2];
|
||||
final StrBuilder sb = new StrBuilder() {
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Override
|
||||
public StrBuilder append(final StrBuilder str, final int startIndex, final int length) {
|
||||
|
@ -778,7 +778,7 @@ public class StrBuilderAppendInsertTest {
|
|||
public void testAppendln_CharArray() {
|
||||
final int[] count = new int[2];
|
||||
final StrBuilder sb = new StrBuilder() {
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Override
|
||||
public StrBuilder append(final char[] str) {
|
||||
|
@ -802,7 +802,7 @@ public class StrBuilderAppendInsertTest {
|
|||
public void testAppendln_CharArray_int_int() {
|
||||
final int[] count = new int[2];
|
||||
final StrBuilder sb = new StrBuilder() {
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Override
|
||||
public StrBuilder append(final char[] str, final int startIndex, final int length) {
|
||||
|
|
Loading…
Reference in New Issue