diff --git a/src/test/java/org/apache/commons/lang3/ArrayUtilsTest.java b/src/test/java/org/apache/commons/lang3/ArrayUtilsTest.java index cbe6ea783..af7ceba43 100644 --- a/src/test/java/org/apache/commons/lang3/ArrayUtilsTest.java +++ b/src/test/java/org/apache/commons/lang3/ArrayUtilsTest.java @@ -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 }; diff --git a/src/test/java/org/apache/commons/lang3/LocaleUtilsTest.java b/src/test/java/org/apache/commons/lang3/LocaleUtilsTest.java index e3bd1093d..fba9ebf82 100644 --- a/src/test/java/org/apache/commons/lang3/LocaleUtilsTest.java +++ b/src/test/java/org/apache/commons/lang3/LocaleUtilsTest.java @@ -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); + } } //----------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/lang3/builder/ToStringStyleTest.java b/src/test/java/org/apache/commons/lang3/builder/ToStringStyleTest.java index cca9d39b6..2747a7ddf 100644 --- a/src/test/java/org/apache/commons/lang3/builder/ToStringStyleTest.java +++ b/src/test/java/org/apache/commons/lang3/builder/ToStringStyleTest.java @@ -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; } diff --git a/src/test/java/org/apache/commons/lang3/exception/ContextedRuntimeExceptionTest.java b/src/test/java/org/apache/commons/lang3/exception/ContextedRuntimeExceptionTest.java index 47e68fb08..6f3b06638 100644 --- a/src/test/java/org/apache/commons/lang3/exception/ContextedRuntimeExceptionTest.java +++ b/src/test/java/org/apache/commons/lang3/exception/ContextedRuntimeExceptionTest.java @@ -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); diff --git a/src/test/java/org/apache/commons/lang3/exception/ExceptionUtilsTest.java b/src/test/java/org/apache/commons/lang3/exception/ExceptionUtilsTest.java index bdff2845d..c8ef1b699 100644 --- a/src/test/java/org/apache/commons/lang3/exception/ExceptionUtilsTest.java +++ b/src/test/java/org/apache/commons/lang3/exception/ExceptionUtilsTest.java @@ -488,7 +488,7 @@ public class ExceptionUtilsTest { * of Throwable. */ 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 Throwable. */ 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(); } diff --git a/src/test/java/org/apache/commons/lang3/text/CompositeFormatTest.java b/src/test/java/org/apache/commons/lang3/text/CompositeFormatTest.java index 940b5aed9..e49ec4134 100644 --- a/src/test/java/org/apache/commons/lang3/text/CompositeFormatTest.java +++ b/src/test/java/org/apache/commons/lang3/text/CompositeFormatTest.java @@ -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 } diff --git a/src/test/java/org/apache/commons/lang3/text/ExtendedMessageFormatTest.java b/src/test/java/org/apache/commons/lang3/text/ExtendedMessageFormatTest.java index 5741b3973..82d8f1069 100644 --- a/src/test/java/org/apache/commons/lang3/text/ExtendedMessageFormatTest.java +++ b/src/test/java/org/apache/commons/lang3/text/ExtendedMessageFormatTest.java @@ -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 registry) { diff --git a/src/test/java/org/apache/commons/lang3/text/StrBuilderAppendInsertTest.java b/src/test/java/org/apache/commons/lang3/text/StrBuilderAppendInsertTest.java index d77aaf70f..8ba6dfae1 100644 --- a/src/test/java/org/apache/commons/lang3/text/StrBuilderAppendInsertTest.java +++ b/src/test/java/org/apache/commons/lang3/text/StrBuilderAppendInsertTest.java @@ -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) {