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:
Sebastian Bazley 2014-03-28 11:15:32 +00:00
parent 03653e3911
commit 0f1e07e1fe
8 changed files with 31 additions and 31 deletions

View File

@ -1244,7 +1244,7 @@ public class ArrayUtilsTest {
} }
@Test @Test
public void testSubarrayFloat() { public void testSubarrayFloat() {
final float[] nullArray = null; final float[] nullArray = null;
final float[] array = { 10, 11, 12, 13, 14, 15 }; final float[] array = { 10, 11, 12, 13, 14, 15 };

View File

@ -378,13 +378,13 @@ public class LocaleUtilsTest {
*/ */
@Test @Test
public void testThreeCharsLocale() { public void testThreeCharsLocale() {
for (String str : Arrays.asList("udm", "tet")) { for (String str : Arrays.asList("udm", "tet")) {
Locale locale = LocaleUtils.toLocale(str); Locale locale = LocaleUtils.toLocale(str);
assertNotNull(locale); assertNotNull(locale);
assertEquals(str, locale.getLanguage()); assertEquals(str, locale.getLanguage());
assertTrue(StringUtils.isBlank(locale.getCountry())); assertTrue(StringUtils.isBlank(locale.getCountry()));
assertEquals(new Locale(str), locale); assertEquals(new Locale(str), locale);
} }
} }
//----------------------------------------------------------------------- //-----------------------------------------------------------------------

View File

@ -28,7 +28,7 @@ import org.junit.Test;
public class ToStringStyleTest { public class ToStringStyleTest {
private static class ToStringStyleImpl extends ToStringStyle { private static class ToStringStyleImpl extends ToStringStyle {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
} }

View File

@ -81,7 +81,7 @@ public class ContextedRuntimeExceptionTest extends AbstractExceptionContextTest<
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), 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 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);

View File

@ -488,7 +488,7 @@ public class ExceptionUtilsTest {
* 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 static final long serialVersionUID = 1L;
private Throwable cause; private Throwable cause;
@ -518,7 +518,7 @@ public class ExceptionUtilsTest {
* return value of <code>Throwable</code>. * return value of <code>Throwable</code>.
*/ */
private static class ExceptionWithoutCause extends Exception { private static class ExceptionWithoutCause extends Exception {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@SuppressWarnings("unused") @SuppressWarnings("unused")
public void getTargetException() { public void getTargetException() {
@ -528,7 +528,7 @@ public class ExceptionUtilsTest {
// 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; private static final long serialVersionUID = 1L;
@SuppressWarnings("unused") @SuppressWarnings("unused")
public NestableException() { super(); } public NestableException() { super(); }

View File

@ -37,9 +37,9 @@ public class CompositeFormatTest {
public void testCompositeFormat() { public void testCompositeFormat() {
final Format parser = new Format() { 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) { public StringBuffer format(final Object obj, final StringBuffer toAppendTo, final FieldPosition pos) {
throw new UnsupportedOperationException("Not implemented"); throw new UnsupportedOperationException("Not implemented");
} }
@ -51,9 +51,9 @@ public class CompositeFormatTest {
}; };
final Format formatter = new Format() { 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) { public StringBuffer format(final Object obj, final StringBuffer toAppendTo, final FieldPosition pos) {
return null; // do nothing return null; // do nothing
} }

View File

@ -394,7 +394,7 @@ public class ExtendedMessageFormatTest {
* {@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; 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) {
@ -408,7 +408,7 @@ public class ExtendedMessageFormatTest {
* {@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; 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) {
@ -457,7 +457,7 @@ public class ExtendedMessageFormatTest {
* Alternative ExtendedMessageFormat impl. * Alternative ExtendedMessageFormat impl.
*/ */
private static class OtherExtendedMessageFormat extends ExtendedMessageFormat { 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, public OtherExtendedMessageFormat(final String pattern, final Locale locale,
final Map<String, ? extends FormatFactory> registry) { final Map<String, ? extends FormatFactory> registry) {

View File

@ -548,7 +548,7 @@ public class StrBuilderAppendInsertTest {
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; private static final long serialVersionUID = 1L;
@Override @Override
public StrBuilder append(final String str) { public StrBuilder append(final String str) {
@ -586,7 +586,7 @@ public class StrBuilderAppendInsertTest {
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; private static final long serialVersionUID = 1L;
@Override @Override
public StrBuilder append(final String str) { public StrBuilder append(final String str) {
@ -610,7 +610,7 @@ public class StrBuilderAppendInsertTest {
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; 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) {
@ -634,7 +634,7 @@ public class StrBuilderAppendInsertTest {
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; private static final long serialVersionUID = 1L;
@Override @Override
public StrBuilder append(final StringBuffer str) { public StrBuilder append(final StringBuffer str) {
@ -658,7 +658,7 @@ public class StrBuilderAppendInsertTest {
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; private static final long serialVersionUID = 1L;
@Override @Override
public StrBuilder append(final StringBuilder str) { public StrBuilder append(final StringBuilder str) {
@ -682,7 +682,7 @@ public class StrBuilderAppendInsertTest {
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; 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) {
@ -706,7 +706,7 @@ public class StrBuilderAppendInsertTest {
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; 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) {
@ -730,7 +730,7 @@ public class StrBuilderAppendInsertTest {
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; private static final long serialVersionUID = 1L;
@Override @Override
public StrBuilder append(final StrBuilder str) { public StrBuilder append(final StrBuilder str) {
@ -754,7 +754,7 @@ public class StrBuilderAppendInsertTest {
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; 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) {
@ -778,7 +778,7 @@ public class StrBuilderAppendInsertTest {
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; private static final long serialVersionUID = 1L;
@Override @Override
public StrBuilder append(final char[] str) { public StrBuilder append(final char[] str) {
@ -802,7 +802,7 @@ public class StrBuilderAppendInsertTest {
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; 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) {