Remove extra blank lines

This commit is contained in:
Gary Gregory 2023-11-26 14:04:50 -05:00
parent 7182f72061
commit f04b12b9ce
53 changed files with 0 additions and 88 deletions

View File

@ -778,7 +778,6 @@ public class ArrayUtils {
return (T[]) add(array, index, element, clazz); return (T[]) add(array, index, element, clazz);
} }
/** /**
* Copies the given array and adds the given element at the end of the new array. * Copies the given array and adds the given element at the end of the new array.
* <p> * <p>
@ -3521,7 +3520,6 @@ public class ArrayUtils {
return getLength(array1) == getLength(array2); return getLength(array1) == getLength(array2);
} }
/** /**
* Checks whether two arrays are the same length, treating * Checks whether two arrays are the same length, treating
* {@code null} arrays as length {@code 0}. * {@code null} arrays as length {@code 0}.
@ -4080,7 +4078,6 @@ public class ArrayUtils {
return INDEX_NOT_FOUND; return INDEX_NOT_FOUND;
} }
/** /**
* Finds the last index of the given value within the array. * Finds the last index of the given value within the array.
* <p> * <p>
@ -8286,7 +8283,6 @@ public class ArrayUtils {
swap(array, offset1, offset2, 1); swap(array, offset1, offset2, 1);
} }
/** /**
* Swaps a series of elements in the given boolean array. * Swaps a series of elements in the given boolean array.
* *

View File

@ -18,7 +18,6 @@ package org.apache.commons.lang3;
import java.util.UUID; import java.util.UUID;
/** /**
* Static methods to convert a type into another, with endianness and bit ordering awareness. * Static methods to convert a type into another, with endianness and bit ordering awareness.
* *

View File

@ -756,7 +756,6 @@ public class ObjectUtils {
return Integer.toHexString(Objects.hashCode(object)); return Integer.toHexString(Objects.hashCode(object));
} }
/** /**
* Gets the hash code for multiple objects. * Gets the hash code for multiple objects.
* *
@ -937,7 +936,6 @@ public class ObjectUtils {
.append(hexString); .append(hexString);
} }
// Constants (LANG-816): // Constants (LANG-816):
/* /*
These methods ensure constants are not inlined by javac. These methods ensure constants are not inlined by javac.
@ -1164,7 +1162,6 @@ public class ObjectUtils {
return result; return result;
} }
/** /**
* Find the most frequently occurring item. * Find the most frequently occurring item.
* *

View File

@ -455,7 +455,6 @@ public class RandomStringUtils {
return random(count, 32, 126, false, false); return random(count, 32, 126, false, false);
} }
/** /**
* Creates a random string whose length is between the inclusive minimum and * Creates a random string whose length is between the inclusive minimum and
* the exclusive maximum. * the exclusive maximum.

View File

@ -759,7 +759,6 @@ public class StringEscapeUtils {
return UNESCAPE_JSON.translate(input); return UNESCAPE_JSON.translate(input);
} }
/** /**
* Unescapes a string containing XML entity escapes to a string * Unescapes a string containing XML entity escapes to a string
* containing the actual Unicode characters corresponding to the * containing the actual Unicode characters corresponding to the

View File

@ -4470,7 +4470,6 @@ public class StringUtils {
return join(subList.iterator(), separator); return join(subList.iterator(), separator);
} }
/** /**
* Joins the elements of the provided array into a single String containing the provided list of elements. * Joins the elements of the provided array into a single String containing the provided list of elements.
* *

View File

@ -384,7 +384,6 @@ public class EqualsBuilder implements Builder<Boolean> {
bypassReflectionClasses.add(String.class); //hashCode field being lazy but not transient bypassReflectionClasses.add(String.class); //hashCode field being lazy but not transient
} }
/** /**
* Test if two {@code booleans}s are equal. * Test if two {@code booleans}s are equal.
* *

View File

@ -126,7 +126,6 @@ public class ReflectionDiffBuilder<T> implements Builder<DiffResult<T>> {
return !field.isAnnotationPresent(DiffExclude.class); return !field.isAnnotationPresent(DiffExclude.class);
} }
private void appendFields(final Class<?> clazz) { private void appendFields(final Class<?> clazz) {
for (final Field field : FieldUtils.getAllFields(clazz)) { for (final Field field : FieldUtils.getAllFields(clazz)) {
if (accept(field)) { if (accept(field)) {

View File

@ -413,7 +413,6 @@ public class ReflectionToStringBuilder extends ToStringBuilder {
return new ReflectionToStringBuilder(object).setExcludeFieldNames(excludeFieldNames).toString(); return new ReflectionToStringBuilder(object).setExcludeFieldNames(excludeFieldNames).toString();
} }
/** /**
* Builds a String for a toString method including the given field names. * Builds a String for a toString method including the given field names.
* *

View File

@ -90,7 +90,6 @@ public final class Fraction extends Number implements Comparable<Fraction> {
*/ */
public static final Fraction FOUR_FIFTHS = new Fraction(4, 5); public static final Fraction FOUR_FIFTHS = new Fraction(4, 5);
/** /**
* Add two integers, checking for overflow. * Add two integers, checking for overflow.
* *

View File

@ -85,7 +85,6 @@ public class NumberUtils {
*/ */
public static final Long LONG_INT_MIN_VALUE = Long.valueOf(Integer.MIN_VALUE); public static final Long LONG_INT_MIN_VALUE = Long.valueOf(Integer.MIN_VALUE);
/** /**
* Compares two {@code byte} values numerically. This is the same functionality as provided in Java 7. * Compares two {@code byte} values numerically. This is the same functionality as provided in Java 7.
* *

View File

@ -801,7 +801,6 @@ public class StrBuilder implements CharSequence, Appendable, Serializable, Build
return this; return this;
} }
/** /**
* Appends each item in an array to the builder without any separators. * Appends each item in an array to the builder without any separators.
* Appending a null array will have no effect. * Appending a null array will have no effect.

View File

@ -214,7 +214,6 @@ public class StrTokenizer implements ListIterator<String>, Cloneable {
/** The text to work on. */ /** The text to work on. */
private char[] chars; private char[] chars;
/** The parsed tokens */ /** The parsed tokens */
private String[] tokens; private String[] tokens;
@ -230,7 +229,6 @@ public class StrTokenizer implements ListIterator<String>, Cloneable {
/** The ignored matcher */ /** The ignored matcher */
private StrMatcher ignoredMatcher = StrMatcher.noneMatcher(); private StrMatcher ignoredMatcher = StrMatcher.noneMatcher();
/** The trimmer matcher */ /** The trimmer matcher */
private StrMatcher trimmerMatcher = StrMatcher.noneMatcher(); private StrMatcher trimmerMatcher = StrMatcher.noneMatcher();

View File

@ -83,7 +83,6 @@ abstract class AbstractFormatCache<F extends Format> {
return hashCode; return hashCode;
} }
} }
/** /**

View File

@ -139,7 +139,6 @@ public interface DatePrinter {
@Deprecated @Deprecated
StringBuffer format(long millis, StringBuffer buf); StringBuffer format(long millis, StringBuffer buf);
/** /**
* Formats a {@link Date}, {@link Calendar} or * Formats a {@link Date}, {@link Calendar} or
* {@link Long} (milliseconds) object. * {@link Long} (milliseconds) object.

View File

@ -508,7 +508,6 @@ public class DurationFormatUtils {
final TimeZone timezone) { final TimeZone timezone) {
Validate.isTrue(startMillis <= endMillis, "startMillis must not be greater than endMillis"); Validate.isTrue(startMillis <= endMillis, "startMillis must not be greater than endMillis");
// Used to optimise for differences under 28 days and // Used to optimise for differences under 28 days and
// called formatDuration(millis, format); however this did not work // called formatDuration(millis, format); however this did not work
// over leap years. // over leap years.

View File

@ -537,7 +537,6 @@ public class FastDateFormat extends Format implements DateParser, DatePrinter {
// Parsing // Parsing
/** /**
* Formats a millisecond {@code long} value into the * Formats a millisecond {@code long} value into the
* supplied {@link StringBuffer}. * supplied {@link StringBuffer}.

View File

@ -1308,7 +1308,6 @@ public class FastDatePrinter implements DatePrinter, Serializable {
maxLengthEstimate = len; maxLengthEstimate = len;
} }
/** /**
* Creates a new Calendar instance. * Creates a new Calendar instance.
* @return a new Calendar instance. * @return a new Calendar instance.

View File

@ -53,7 +53,6 @@ public class ArrayUtilsInsertTest extends AbstractLangTest {
assertArrayEquals(new boolean[]{true, false, true, false, true, false}, ArrayUtils.insert(array.length, array, values)); assertArrayEquals(new boolean[]{true, false, true, false, true, false}, ArrayUtils.insert(array.length, array, values));
} }
@Test @Test
public void testInsertBytes() { public void testInsertBytes() {
final byte[] array = {1, 2, 3}; final byte[] array = {1, 2, 3};
@ -176,7 +175,6 @@ public class ArrayUtilsInsertTest extends AbstractLangTest {
assertArrayEquals(new String[]{"a", "b", "c", "d", "e", "f"}, ArrayUtils.insert(array.length, array, values)); assertArrayEquals(new String[]{"a", "b", "c", "d", "e", "f"}, ArrayUtils.insert(array.length, array, values));
} }
@Test @Test
public void testInsertInts() { public void testInsertInts() {
final int[] array = {1, 2, 3}; final int[] array = {1, 2, 3};
@ -201,7 +199,6 @@ public class ArrayUtilsInsertTest extends AbstractLangTest {
assertArrayEquals(new int[]{1, 2, 3, 4, 5, 6}, ArrayUtils.insert(array.length, array, values)); assertArrayEquals(new int[]{1, 2, 3, 4, 5, 6}, ArrayUtils.insert(array.length, array, values));
} }
@Test @Test
public void testInsertLongs() { public void testInsertLongs() {
final long[] array = {1, 2, 3}; final long[] array = {1, 2, 3};
@ -226,7 +223,6 @@ public class ArrayUtilsInsertTest extends AbstractLangTest {
assertArrayEquals(new long[]{1, 2, 3, 4, 5, 6}, ArrayUtils.insert(array.length, array, values)); assertArrayEquals(new long[]{1, 2, 3, 4, 5, 6}, ArrayUtils.insert(array.length, array, values));
} }
@Test @Test
public void testInsertShorts() { public void testInsertShorts() {
final short[] array = {1, 2, 3}; final short[] array = {1, 2, 3};

View File

@ -603,7 +603,6 @@ public class ArrayUtilsRemoveTest extends AbstractLangTest {
assertEquals(Integer.TYPE, array.getClass().getComponentType()); assertEquals(Integer.TYPE, array.getClass().getComponentType());
} }
@Test @Test
public void testRemoveElementLongArray() { public void testRemoveElementLongArray() {
long[] array; long[] array;

View File

@ -4608,7 +4608,6 @@ public class ArrayUtilsTest extends AbstractLangTest {
assertEquals(2, array[3]); assertEquals(2, array[3]);
} }
@Test @Test
public void testShiftInt() { public void testShiftInt() {
final int[] array = {1, 2, 3, 4}; final int[] array = {1, 2, 3, 4};
@ -5319,7 +5318,6 @@ public class ArrayUtilsTest extends AbstractLangTest {
final int[] midSubarray = {11, 12, 13, 14}; final int[] midSubarray = {11, 12, 13, 14};
final int[] rightSubarray = {12, 13, 14, 15}; final int[] rightSubarray = {12, 13, 14, 15};
assertTrue(ArrayUtils.isEquals(leftSubarray, ArrayUtils.subarray(array, 0, 4)), "0 start, mid end"); assertTrue(ArrayUtils.isEquals(leftSubarray, ArrayUtils.subarray(array, 0, 4)), "0 start, mid end");
assertTrue(ArrayUtils.isEquals(array, ArrayUtils.subarray(array, 0, array.length)), "0 start, length end"); assertTrue(ArrayUtils.isEquals(array, ArrayUtils.subarray(array, 0, array.length)), "0 start, length end");
@ -5329,7 +5327,6 @@ public class ArrayUtilsTest extends AbstractLangTest {
assertTrue(ArrayUtils.isEquals(rightSubarray, ArrayUtils.subarray(array, 2, array.length)), assertTrue(ArrayUtils.isEquals(rightSubarray, ArrayUtils.subarray(array, 2, array.length)),
"mid start, length end"); "mid start, length end");
assertNull(ArrayUtils.subarray(nullArray, 0, 3), "null input"); assertNull(ArrayUtils.subarray(nullArray, 0, 3), "null input");
assertEquals(ArrayUtils.EMPTY_INT_ARRAY, ArrayUtils.subarray(ArrayUtils.EMPTY_INT_ARRAY, 1, 2), "empty array"); assertEquals(ArrayUtils.EMPTY_INT_ARRAY, ArrayUtils.subarray(ArrayUtils.EMPTY_INT_ARRAY, 1, 2), "empty array");

View File

@ -225,7 +225,6 @@ public class CharSequenceUtilsTest extends AbstractLangTest {
} }
} }
private void testNewLastIndexOfSingle(final CharSequence a, final CharSequence b) { private void testNewLastIndexOfSingle(final CharSequence a, final CharSequence b) {
final int maxa = Math.max(a.length(), b.length()); final int maxa = Math.max(a.length(), b.length());
for (int i = -maxa - 10; i <= maxa + 10; i++) { for (int i = -maxa - 10; i <= maxa + 10; i++) {

View File

@ -34,7 +34,6 @@ run_CharUtils_isAsciiNumeric: 4,545 milliseconds.
run_inlined_CharUtils_isAsciiNumeric: 3,417 milliseconds. run_inlined_CharUtils_isAsciiNumeric: 3,417 milliseconds.
run_inlined_CharUtils_isAsciiNumeric: 85,679 milliseconds. run_inlined_CharUtils_isAsciiNumeric: 85,679 milliseconds.
Now: Thu Mar 18 14:24:51 PST 2004 Now: Thu Mar 18 14:24:51 PST 2004
Sun Microsystems Inc. Java(TM) 2 Runtime Environment, Standard Edition 1.4.2_04-b05 Sun Microsystems Inc. Java(TM) 2 Runtime Environment, Standard Edition 1.4.2_04-b05
Sun Microsystems Inc. Java HotSpot(TM) Client VM 1.4.2_04-b05 Sun Microsystems Inc. Java HotSpot(TM) Client VM 1.4.2_04-b05
@ -53,7 +52,6 @@ run_CharUtils_isAsciiNumeric: 630 milliseconds.
run_inlined_CharUtils_isAsciiNumeric: 709 milliseconds. run_inlined_CharUtils_isAsciiNumeric: 709 milliseconds.
run_inlined_CharUtils_isAsciiNumeric: 84,420 milliseconds. run_inlined_CharUtils_isAsciiNumeric: 84,420 milliseconds.
*/ */
public class CharUtilsPerfRun { public class CharUtilsPerfRun {

View File

@ -28,7 +28,6 @@ import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.ValueSource; import org.junit.jupiter.params.provider.ValueSource;
/** /**
* Unit tests {@link Conversion}. * Unit tests {@link Conversion}.
*/ */

View File

@ -501,7 +501,6 @@ public class RandomStringUtilsTest extends AbstractLangTest {
assertEquals("", r1, "random(0).equals(\"\")"); assertEquals("", r1, "random(0).equals(\"\")");
} }
/** /**
* Test homogeneity of random strings generated -- * Test homogeneity of random strings generated --
* i.e., test that characters show up with expected frequencies * i.e., test that characters show up with expected frequencies

View File

@ -71,7 +71,6 @@ public class SerializationUtilsTest extends AbstractLangTest {
iMap.put("BAR", iInteger); iMap.put("BAR", iInteger);
} }
@Test @Test
public void testClone() { public void testClone() {
final Object test = SerializationUtils.clone(iMap); final Object test = SerializationUtils.clone(iMap);
@ -92,7 +91,6 @@ public class SerializationUtilsTest extends AbstractLangTest {
assertNull(test); assertNull(test);
} }
@Test @Test
public void testCloneUnserializable() { public void testCloneUnserializable() {
iMap.put(new Object(), new Object()); iMap.put(new Object(), new Object());
@ -151,7 +149,6 @@ public class SerializationUtilsTest extends AbstractLangTest {
assertNull(test); assertNull(test);
} }
@Test @Test
public void testDeserializeClassCastException() { public void testDeserializeClassCastException() {
final String value = "Hello"; final String value = "Hello";
@ -276,7 +273,6 @@ public class SerializationUtilsTest extends AbstractLangTest {
assertArrayEquals(realBytes, testBytes); assertArrayEquals(realBytes, testBytes);
} }
@Test @Test
public void testSerializeBytesNull() throws Exception { public void testSerializeBytesNull() throws Exception {
final byte[] testBytes = SerializationUtils.serialize(null); final byte[] testBytes = SerializationUtils.serialize(null);
@ -330,7 +326,6 @@ public class SerializationUtilsTest extends AbstractLangTest {
assertArrayEquals(realBytes, testBytes); assertArrayEquals(realBytes, testBytes);
} }
@Test @Test
public void testSerializeStreamNullNull() { public void testSerializeStreamNullNull() {
assertThrows(NullPointerException.class, () -> SerializationUtils.serialize(null, null)); assertThrows(NullPointerException.class, () -> SerializationUtils.serialize(null, null));

View File

@ -132,7 +132,6 @@ public class StringEscapeUtilsTest extends AbstractLangTest {
assertNull(StringEscapeUtils.escapeCsv(null)); assertNull(StringEscapeUtils.escapeCsv(null));
} }
@Test @Test
public void testEscapeCsvWriter() throws Exception { public void testEscapeCsvWriter() throws Exception {
checkCsvEscapeWriter("foo.bar", "foo.bar"); checkCsvEscapeWriter("foo.bar", "foo.bar");

View File

@ -21,7 +21,6 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
/** /**
* Unit tests {@link org.apache.commons.lang3.StringUtils} - StartsWith/EndsWith methods * Unit tests {@link org.apache.commons.lang3.StringUtils} - StartsWith/EndsWith methods
*/ */
@ -33,7 +32,6 @@ public class StringUtilsStartsEndsWithTest extends AbstractLangTest {
private static final String BAR = "BAR"; private static final String BAR = "BAR";
private static final String FOOBAR = "FOOBAR"; private static final String FOOBAR = "FOOBAR";
/** /**
* Test StringUtils.endsWith() * Test StringUtils.endsWith()
*/ */
@ -130,7 +128,6 @@ public class StringUtilsStartsEndsWithTest extends AbstractLangTest {
"endsWith(\u03B1\u03B2\u03B3\u03B4, \u0393)"); "endsWith(\u03B1\u03B2\u03B3\u03B4, \u0393)");
} }
/** /**
* Test StringUtils.startsWith() * Test StringUtils.startsWith()
*/ */
@ -196,5 +193,4 @@ public class StringUtilsStartsEndsWithTest extends AbstractLangTest {
assertFalse(StringUtils.startsWithIgnoreCase(FOOBAR, bar), "startsWithIgnoreCase(FOOBAR, bar)"); assertFalse(StringUtils.startsWithIgnoreCase(FOOBAR, bar), "startsWithIgnoreCase(FOOBAR, bar)");
} }
} }

View File

@ -32,7 +32,6 @@ public class StringUtilsSubstringTest extends AbstractLangTest {
private static final String FOOBAR = "foobar"; private static final String FOOBAR = "foobar";
private static final String SENTENCE = "foo bar baz"; private static final String SENTENCE = "foo bar baz";
@Test @Test
public void testCountMatches_char() { public void testCountMatches_char() {
assertEquals(0, StringUtils.countMatches(null, 'D')); assertEquals(0, StringUtils.countMatches(null, 'D'));

View File

@ -676,7 +676,6 @@ public class StringUtilsTest extends AbstractLangTest {
assertEquals("abc", s); assertEquals("abc", s);
} }
@Test @Test
public void testDefaultIfEmpty_CharBuffers() { public void testDefaultIfEmpty_CharBuffers() {
assertEquals("NULL", StringUtils.defaultIfEmpty(CharBuffer.wrap(""), CharBuffer.wrap("NULL")).toString()); assertEquals("NULL", StringUtils.defaultIfEmpty(CharBuffer.wrap(""), CharBuffer.wrap("NULL")).toString());
@ -697,7 +696,6 @@ public class StringUtilsTest extends AbstractLangTest {
assertEquals("abc", s.toString()); assertEquals("abc", s.toString());
} }
@Test @Test
public void testDefaultIfEmpty_StringBuilders() { public void testDefaultIfEmpty_StringBuilders() {
assertEquals("NULL", StringUtils.defaultIfEmpty(new StringBuilder(""), new StringBuilder("NULL")).toString()); assertEquals("NULL", StringUtils.defaultIfEmpty(new StringBuilder(""), new StringBuilder("NULL")).toString());
@ -746,7 +744,6 @@ public class StringUtilsTest extends AbstractLangTest {
assertEquals("you are a robot", StringUtils.difference("i am a robot", "you are a robot")); assertEquals("you are a robot", StringUtils.difference("i am a robot", "you are a robot"));
} }
@Test @Test
public void testDifferenceAt_StringArray() { public void testDifferenceAt_StringArray() {
assertEquals(-1, StringUtils.indexOfDifference((String[]) null)); assertEquals(-1, StringUtils.indexOfDifference((String[]) null));
@ -1182,7 +1179,6 @@ public class StringUtilsTest extends AbstractLangTest {
assertEquals("", StringUtils.join(MIXED_TYPE_LIST, '/', 2, 1)); assertEquals("", StringUtils.join(MIXED_TYPE_LIST, '/', 2, 1));
} }
@Test @Test
public void testJoin_ArrayOfBooleans() { public void testJoin_ArrayOfBooleans() {
assertNull(StringUtils.join((boolean[]) null, COMMA_SEPARATOR_CHAR)); assertNull(StringUtils.join((boolean[]) null, COMMA_SEPARATOR_CHAR));

View File

@ -269,7 +269,6 @@ public class SystemPropertiesTest {
assertNotNull(SystemProperties.getOsName()); assertNotNull(SystemProperties.getOsName());
} }
@Test @Test
public void testGetOsVersion() { public void testGetOsVersion() {
assertNotNull(SystemProperties.getOsVersion()); assertNotNull(SystemProperties.getOsVersion());

View File

@ -30,7 +30,6 @@ import org.junit.jupiter.api.Test;
*/ */
public class CompareToBuilderTest extends AbstractLangTest { public class CompareToBuilderTest extends AbstractLangTest {
static class TestObject implements Comparable<TestObject> { static class TestObject implements Comparable<TestObject> {
private int a; private int a;
TestObject(final int a) { TestObject(final int a) {
@ -997,7 +996,6 @@ public class CompareToBuilderTest extends AbstractLangTest {
array3[1][2] = 100; array3[1][2] = 100;
array3[1][2] = 100; array3[1][2] = 100;
assertEquals(0, new CompareToBuilder().append(array1, array1).toComparison()); assertEquals(0, new CompareToBuilder().append(array1, array1).toComparison());
assertEquals(0, new CompareToBuilder().append(array1, array2).toComparison()); assertEquals(0, new CompareToBuilder().append(array1, array2).toComparison());
assertTrue(new CompareToBuilder().append(array1, array3).toComparison() < 0); assertTrue(new CompareToBuilder().append(array1, array3).toComparison() < 0);

View File

@ -30,7 +30,6 @@ import org.apache.commons.lang3.ArrayUtils;
import org.hamcrest.Matcher; import org.hamcrest.Matcher;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
/** /**
* Unit tests {@link DiffBuilder}. * Unit tests {@link DiffBuilder}.
*/ */

View File

@ -22,7 +22,6 @@ import static org.junit.jupiter.api.Assertions.assertThrows;
import org.apache.commons.lang3.AbstractLangTest; import org.apache.commons.lang3.AbstractLangTest;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
/** /**
* Unit tests {@link Diff}. * Unit tests {@link Diff}.
*/ */

View File

@ -37,7 +37,6 @@ import org.junit.jupiter.api.Test;
*/ */
public class EqualsBuilderTest extends AbstractLangTest { public class EqualsBuilderTest extends AbstractLangTest {
public static class TestACanEqualB { public static class TestACanEqualB {
private final int a; private final int a;

View File

@ -28,7 +28,6 @@ import org.junit.jupiter.api.Test;
*/ */
public class HashCodeBuilderAndEqualsBuilderTest extends AbstractLangTest { public class HashCodeBuilderAndEqualsBuilderTest extends AbstractLangTest {
static class AllTransientFixture { static class AllTransientFixture {
transient int i; transient int i;
transient char c; transient char c;
@ -134,5 +133,4 @@ public class HashCodeBuilderAndEqualsBuilderTest extends AbstractLangTest {
testInteger(true); testInteger(true);
} }
} }

View File

@ -56,7 +56,6 @@ public class ReflectionDiffBuilderTest extends AbstractLangTest {
private String annotatedField = "a"; private String annotatedField = "a";
private String excludedField = "a"; private String excludedField = "a";
@Override @Override
public DiffResult diff(final TypeTestClass obj) { public DiffResult diff(final TypeTestClass obj) {
return new ReflectionDiffBuilder(this, obj, style).setExcludeFieldNames("excludedField").build(); return new ReflectionDiffBuilder(this, obj, style).setExcludeFieldNames("excludedField").build();

View File

@ -299,7 +299,6 @@ public class ToStringBuilderTest extends AbstractLangTest {
assertEquals(baseStr + "[{1,2,-3,4}]", new ToStringBuilder(base).append(null, array).toString()); assertEquals(baseStr + "[{1,2,-3,4}]", new ToStringBuilder(base).append(null, array).toString());
} }
@Test @Test
public void testAppendByteArrayWithFieldNameAndFullDetatil() { public void testAppendByteArrayWithFieldNameAndFullDetatil() {
final byte[] array = { 1, 2, -3, 4 }; final byte[] array = { 1, 2, -3, 4 };
@ -529,7 +528,6 @@ public class ToStringBuilderTest extends AbstractLangTest {
assertEquals(baseStr + "[<null>]", new ToStringBuilder(base).append((Object) array).toString()); assertEquals(baseStr + "[<null>]", new ToStringBuilder(base).append((Object) array).toString());
} }
@Test @Test
public void testBooleanArrayArray() { public void testBooleanArrayArray() {
boolean[][] array = {{true, false}, null, {false}}; boolean[][] array = {{true, false}, null, {false}};
@ -557,7 +555,6 @@ public class ToStringBuilderTest extends AbstractLangTest {
assertEquals(baseStr + "[<null>]", new ToStringBuilder(base).append((Object) array).toString()); assertEquals(baseStr + "[<null>]", new ToStringBuilder(base).append((Object) array).toString());
} }
@Test @Test
public void testByteArrayArray() { public void testByteArrayArray() {
byte[][] array = {{1, 2}, null, {5}}; byte[][] array = {{1, 2}, null, {5}};
@ -798,7 +795,6 @@ public class ToStringBuilderTest extends AbstractLangTest {
assertEquals(baseStr + "[<null>]", new ToStringBuilder(base).append((Object) array).toString()); assertEquals(baseStr + "[<null>]", new ToStringBuilder(base).append((Object) array).toString());
} }
@Test @Test
public void testObjectBuild() { public void testObjectBuild() {
final Integer i3 = Integer.valueOf(3); final Integer i3 = Integer.valueOf(3);
@ -945,7 +941,6 @@ public class ToStringBuilderTest extends AbstractLangTest {
assertReflectionArray("<null>", array); assertReflectionArray("<null>", array);
} }
/** /**
* Test wrapper for char primitive. * Test wrapper for char primitive.
*/ */

View File

@ -24,7 +24,6 @@ import static org.junit.jupiter.api.Assertions.assertThrows;
import org.apache.commons.lang3.exception.AbstractExceptionTest; import org.apache.commons.lang3.exception.AbstractExceptionTest;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
/** /**
* JUnit tests for {@link CircuitBreakingException}. * JUnit tests for {@link CircuitBreakingException}.
*/ */

View File

@ -113,7 +113,6 @@ public class EventUtilsTest extends AbstractLangTest {
} }
} }
public static class PropertyChangeSource { public static class PropertyChangeSource {
private final EventListenerSupport<PropertyChangeListener> listeners = EventListenerSupport.create(PropertyChangeListener.class); private final EventListenerSupport<PropertyChangeListener> listeners = EventListenerSupport.create(PropertyChangeListener.class);
@ -138,7 +137,6 @@ public class EventUtilsTest extends AbstractLangTest {
} }
} }
@Test @Test
public void testAddEventListener() { public void testAddEventListener() {
final PropertyChangeSource src = new PropertyChangeSource(); final PropertyChangeSource src = new PropertyChangeSource();
@ -183,7 +181,6 @@ public class EventUtilsTest extends AbstractLangTest {
e.getMessage()); e.getMessage());
} }
@Test @Test
public void testBindEventsToMethod() { public void testBindEventsToMethod() {
final PropertyChangeSource src = new PropertyChangeSource(); final PropertyChangeSource src = new PropertyChangeSource();

View File

@ -34,7 +34,6 @@ import org.apache.commons.lang3.tuple.Pair;
import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
/** /**
* Abstract test of an ExceptionContext implementation. * Abstract test of an ExceptionContext implementation.
*/ */
@ -51,7 +50,6 @@ public abstract class AbstractExceptionContextTest<T extends ExceptionContext &
protected T exceptionContext; protected T exceptionContext;
@BeforeEach @BeforeEach
public void setUp() throws Exception { public void setUp() throws Exception {
exceptionContext exceptionContext

View File

@ -126,7 +126,6 @@ public class ExceptionUtilsTest extends AbstractLangTest {
private ExceptionWithCause cyclicCause; private ExceptionWithCause cyclicCause;
private Throwable jdkNoCause; private Throwable jdkNoCause;
private NestableException nested; private NestableException nested;

View File

@ -291,7 +291,6 @@ public class FractionTest extends AbstractLangTest {
assertThrows(ArithmeticException.class, () -> negative.divideBy(negative.invert())); // Should overflow assertThrows(ArithmeticException.class, () -> negative.divideBy(negative.invert())); // Should overflow
} }
@Test @Test
public void testEquals() { public void testEquals() {
Fraction f1; Fraction f1;
@ -685,7 +684,6 @@ public class FractionTest extends AbstractLangTest {
assertEquals(6, f.getNumerator()); assertEquals(6, f.getNumerator());
assertEquals(25, f.getDenominator()); assertEquals(25, f.getDenominator());
f1 = Fraction.getFraction(0, 5); f1 = Fraction.getFraction(0, 5);
f2 = Fraction.getFraction(2, 7); f2 = Fraction.getFraction(2, 7);
f = f1.multiplyBy(f2); f = f1.multiplyBy(f2);

View File

@ -24,7 +24,6 @@ import static org.junit.jupiter.api.Assertions.assertSame;
import org.apache.commons.lang3.AbstractLangTest; import org.apache.commons.lang3.AbstractLangTest;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
/** /**
* JUnit tests. * JUnit tests.
* *

View File

@ -128,7 +128,6 @@ public class ConstructorUtilsTest extends AbstractLangTest {
classCache = new HashMap<>(); classCache = new HashMap<>();
} }
private void expectMatchingAccessibleConstructorParameterTypes(final Class<?> cls, private void expectMatchingAccessibleConstructorParameterTypes(final Class<?> cls,
final Class<?>[] requestTypes, final Class<?>[] actualTypes) { final Class<?>[] requestTypes, final Class<?>[] actualTypes) {
final Constructor<?> c = ConstructorUtils.getMatchingAccessibleConstructor(cls, final Constructor<?> c = ConstructorUtils.getMatchingAccessibleConstructor(cls,

View File

@ -387,7 +387,6 @@ public class ExtendedMessageFormatTest extends AbstractLangTest {
assertEquals("Message with placeholder 'DUMMY'", emf2.format(new Object[] {"DUMMY"})); assertEquals("Message with placeholder 'DUMMY'", emf2.format(new Object[] {"DUMMY"}));
} }
/** /**
* Test Bug LANG-477 - out of memory error with escaped quote * Test Bug LANG-477 - out of memory error with escaped quote
*/ */

View File

@ -34,7 +34,6 @@ public class StrMatcherTest extends AbstractLangTest {
private static final char[] BUFFER2 = "abcdef".toCharArray(); private static final char[] BUFFER2 = "abcdef".toCharArray();
@Test @Test
public void testCharMatcher_char() { public void testCharMatcher_char() {
final StrMatcher matcher = StrMatcher.charMatcher('c'); final StrMatcher matcher = StrMatcher.charMatcher('c');

View File

@ -70,5 +70,4 @@ public class EntityArraysTest extends AbstractLangTest {
assertTrue(success, "One or more errors detected"); assertTrue(success, "One or more errors detected");
} }
} }

View File

@ -38,7 +38,6 @@ public class DateUtilsFragmentTest extends AbstractLangTest {
private Date aDate; private Date aDate;
private Calendar aCalendar; private Calendar aCalendar;
@BeforeEach @BeforeEach
public void setUp() { public void setUp() {
aCalendar = Calendar.getInstance(); aCalendar = Calendar.getInstance();
@ -325,7 +324,6 @@ testResult);
assertEquals(expectedValue, testResult); assertEquals(expectedValue, testResult);
} }
@Test @Test
public void testMinutesOfHourWithCalendar() { public void testMinutesOfHourWithCalendar() {
final long testResult = DateUtils.getFragmentInMinutes(aCalendar, Calendar.HOUR_OF_DAY); final long testResult = DateUtils.getFragmentInMinutes(aCalendar, Calendar.HOUR_OF_DAY);

View File

@ -58,7 +58,6 @@ public class DateUtilsRoundingTest extends AbstractLangTest {
@SuppressWarnings("deprecation") @SuppressWarnings("deprecation")
FastDateFormat fdf = DateFormatUtils.ISO_DATETIME_FORMAT; FastDateFormat fdf = DateFormatUtils.ISO_DATETIME_FORMAT;
/** /**
* When using this basetest all extremes are tested.<br> * When using this basetest all extremes are tested.<br>
* It will test the Date, Calendar and Object-implementation<br> * It will test the Date, Calendar and Object-implementation<br>

View File

@ -956,7 +956,6 @@ public class DateUtilsTest extends AbstractLangTest {
DateUtils.round(date2, DateUtils.SEMI_MONTH), DateUtils.round(date2, DateUtils.SEMI_MONTH),
"round semimonth-2 failed"); "round semimonth-2 failed");
assertEquals(dateParser.parse("February 13, 2002"), assertEquals(dateParser.parse("February 13, 2002"),
DateUtils.round(date1, Calendar.DATE), DateUtils.round(date1, Calendar.DATE),
"round date-1 failed"); "round date-1 failed");

View File

@ -238,7 +238,6 @@ public class DurationFormatUtilsTest extends AbstractLangTest {
assertEqualDuration("48", new int[] { 1992, 1, 29, 0, 0, 0 }, assertEqualDuration("48", new int[] { 1992, 1, 29, 0, 0, 0 },
new int[] { 1996, 1, 29, 0, 0, 0 }, "M"); new int[] { 1996, 1, 29, 0, 0, 0 }, "M");
// this seems odd - and will fail if I throw it in as a brute force // this seems odd - and will fail if I throw it in as a brute force
// below as it expects the answer to be 12. It's a tricky edge case // below as it expects the answer to be 12. It's a tricky edge case
assertEqualDuration("11", new int[] { 1996, 1, 29, 0, 0, 0 }, assertEqualDuration("11", new int[] { 1996, 1, 29, 0, 0, 0 },
@ -445,7 +444,6 @@ public class DurationFormatUtilsTest extends AbstractLangTest {
} }
} }
@Test @Test
public void testFormatNegativeDuration() { public void testFormatNegativeDuration() {
assertThrows(IllegalArgumentException.class, () -> DurationFormatUtils.formatDuration(-5000, "S", true)); assertThrows(IllegalArgumentException.class, () -> DurationFormatUtils.formatDuration(-5000, "S", true));
@ -611,7 +609,6 @@ public class DurationFormatUtilsTest extends AbstractLangTest {
assertEquals("1 01999", DurationFormatUtils.formatDuration(61999, "m SSSSS")); assertEquals("1 01999", DurationFormatUtils.formatDuration(61999, "m SSSSS"));
} }
@Test @Test
public void testLANG984() { // Long durations public void testLANG984() { // Long durations
assertEquals("0", DurationFormatUtils.formatDuration(0, "S")); assertEquals("0", DurationFormatUtils.formatDuration(0, "S"));

View File

@ -42,7 +42,6 @@ public class MutableTripleTest extends AbstractLangTest {
assertEquals("hello", triple2.getRight()); assertEquals("hello", triple2.getRight());
} }
@Test @Test
public void testDefault() { public void testDefault() {
final MutableTriple<Integer, String, Boolean> triple = new MutableTriple<>(); final MutableTriple<Integer, String, Boolean> triple = new MutableTriple<>();