Remove redundant calls to super().

This commit is contained in:
Gary Gregory 2020-11-20 18:00:10 -05:00
parent d8f8d9a3a8
commit 53e4f62b51
69 changed files with 0 additions and 118 deletions

View File

@ -9683,6 +9683,5 @@ public static int indexOf(final int[] array, final int valueToFind, int startInd
* to operate.
*/
public ArrayUtils() {
super();
}
}

View File

@ -1126,7 +1126,6 @@ public class BooleanUtils {
* to operate.</p>
*/
public BooleanUtils() {
super();
}
}

View File

@ -64,7 +64,6 @@ final class CharRange implements Iterable<Character>, Serializable {
* @param negated true to express everything except the range
*/
private CharRange(char start, char end, final boolean negated) {
super();
if (start > end) {
final char temp = start;
start = end;

View File

@ -35,7 +35,6 @@ public class CharSequenceUtils {
* instance to operate.</p>
*/
public CharSequenceUtils() {
super();
}
//-----------------------------------------------------------------------

View File

@ -174,7 +174,6 @@ public class CharSet implements Serializable {
* @throws NullPointerException if set is {@code null}
*/
protected CharSet(final String... set) {
super();
for (final String s : set) {
add(s);
}

View File

@ -244,6 +244,5 @@ public class CharSetUtils {
* to operate.</p>
*/
public CharSetUtils() {
super();
}
}

View File

@ -71,7 +71,6 @@ public class CharUtils {
* to operate.</p>
*/
public CharUtils() {
super();
}
//-----------------------------------------------------------------------

View File

@ -35,7 +35,6 @@ public class ClassPathUtils {
* instance to operate.</p>
*/
public ClassPathUtils() {
super();
}
/**

View File

@ -161,7 +161,6 @@ public class ClassUtils {
* instance to operate.</p>
*/
public ClassUtils() {
super();
}
// Short class name

View File

@ -53,7 +53,6 @@ public class LocaleUtils {
* to operate.</p>
*/
public LocaleUtils() {
super();
}
//-----------------------------------------------------------------------

View File

@ -75,7 +75,6 @@ public class ObjectUtils {
* Restricted constructor - singleton.
*/
Null() {
super();
}
/**
@ -1269,7 +1268,6 @@ public class ObjectUtils {
* instance to operate.</p>
*/
public ObjectUtils() {
super();
}
}

View File

@ -64,7 +64,6 @@ public class RandomStringUtils {
* to operate.</p>
*/
public RandomStringUtils() {
super();
}
// Random

View File

@ -52,7 +52,6 @@ public class RandomUtils {
* </p>
*/
public RandomUtils() {
super();
}
/**

View File

@ -38,7 +38,6 @@ public class SerializationException extends RuntimeException {
* detail message.</p>
*/
public SerializationException() {
super();
}
/**

View File

@ -283,7 +283,6 @@ public class SerializationUtils {
* @since 2.0
*/
public SerializationUtils() {
super();
}
}

View File

@ -428,7 +428,6 @@ public class StringEscapeUtils {
* instance to operate.</p>
*/
public StringEscapeUtils() {
super();
}
// Java and JavaScript

View File

@ -9598,7 +9598,6 @@ public class StringUtils {
* instance to operate.</p>
*/
public StringUtils() {
super();
}
}

View File

@ -1880,7 +1880,6 @@ public class SystemUtils {
* </p>
*/
public SystemUtils() {
super();
}
}

View File

@ -233,7 +233,6 @@ public class ThreadUtils {
* </p>
*/
public ThreadUtils() {
super();
}
/**
@ -304,7 +303,6 @@ public class ThreadUtils {
* @throws IllegalArgumentException if the name is {@code null}
*/
public NamePredicate(final String name) {
super();
Validate.notNull(name, "name");
this.name = name;
}
@ -334,7 +332,6 @@ public class ThreadUtils {
* @throws IllegalArgumentException if the threadId is zero or negative
*/
public ThreadIdPredicate(final long threadId) {
super();
if (threadId <= 0) {
throw new IllegalArgumentException("The thread id must be greater than zero");
}

View File

@ -80,7 +80,6 @@ public class Validate {
* Constructor. This class should not normally be instantiated.
*/
public Validate() {
super();
}
// isTrue

View File

@ -108,7 +108,6 @@ public class CompareToBuilder implements Builder<Integer> {
* {@link #toComparison} to get the result.</p>
*/
public CompareToBuilder() {
super();
comparison = 0;
}

View File

@ -79,7 +79,6 @@ public class MultilineRecursiveToStringStyle extends RecursiveToStringStyle {
* Constructor.
*/
public MultilineRecursiveToStringStyle() {
super();
resetIndent();
}

View File

@ -63,7 +63,6 @@ public class RecursiveToStringStyle extends ToStringStyle {
* <p>Constructor.</p>
*/
public RecursiveToStringStyle() {
super();
}
@Override

View File

@ -40,7 +40,6 @@ public class StandardToStringStyle extends ToStringStyle {
* <p>Constructor.</p>
*/
public StandardToStringStyle() {
super();
}
//---------------------------------------------------------------------

View File

@ -357,7 +357,6 @@ public abstract class ToStringStyle implements Serializable {
* <p>Constructor.</p>
*/
protected ToStringStyle() {
super();
}
//----------------------------------------------------------------------------
@ -2151,7 +2150,6 @@ public abstract class ToStringStyle implements Serializable {
* <p>Use the static constant rather than instantiating.</p>
*/
DefaultToStringStyle() {
super();
}
/**
@ -2184,7 +2182,6 @@ public abstract class ToStringStyle implements Serializable {
* <p>Use the static constant rather than instantiating.</p>
*/
NoFieldNameToStringStyle() {
super();
this.setUseFieldNames(false);
}
@ -2218,7 +2215,6 @@ public abstract class ToStringStyle implements Serializable {
* <p>Use the static constant rather than instantiating.</p>
*/
ShortPrefixToStringStyle() {
super();
this.setUseShortClassName(true);
this.setUseIdentityHashCode(false);
}
@ -2252,7 +2248,6 @@ public abstract class ToStringStyle implements Serializable {
* <p>Use the static constant rather than instantiating.</p>
*/
SimpleToStringStyle() {
super();
this.setUseClassName(false);
this.setUseIdentityHashCode(false);
this.setUseFieldNames(false);
@ -2288,7 +2283,6 @@ public abstract class ToStringStyle implements Serializable {
* <p>Use the static constant rather than instantiating.</p>
*/
MultiLineToStringStyle() {
super();
this.setContentStart("[");
this.setFieldSeparator(System.lineSeparator() + " ");
this.setFieldSeparatorAtStart(true);
@ -2325,7 +2319,6 @@ public abstract class ToStringStyle implements Serializable {
* <p>Use the static constant rather than instantiating.</p>
*/
NoClassNameToStringStyle() {
super();
this.setUseClassName(false);
this.setUseIdentityHashCode(false);
}
@ -2372,8 +2365,6 @@ public abstract class ToStringStyle implements Serializable {
* </p>
*/
JsonToStringStyle() {
super();
this.setUseClassName(false);
this.setUseIdentityHashCode(false);

View File

@ -33,7 +33,6 @@ public class CircuitBreakingException extends RuntimeException {
* Creates a new, uninitialized instance of {@code CircuitBreakingException}.
*/
public CircuitBreakingException() {
super();
}
/**

View File

@ -41,7 +41,6 @@ public class ConcurrentException extends Exception {
* Creates a new, uninitialized instance of {@code ConcurrentException}.
*/
protected ConcurrentException() {
super();
}
/**

View File

@ -43,7 +43,6 @@ public class ConcurrentRuntimeException extends RuntimeException {
* ConcurrentRuntimeException}.
*/
protected ConcurrentRuntimeException() {
super();
}
/**

View File

@ -174,7 +174,6 @@ public class EventCountCircuitBreaker extends AbstractCircuitBreaker<Integer> {
public EventCountCircuitBreaker(final int openingThreshold, final long openingInterval,
final TimeUnit openingUnit, final int closingThreshold, final long closingInterval,
final TimeUnit closingUnit) {
super();
checkIntervalData = new AtomicReference<>(new CheckIntervalData(0, 0));
this.openingThreshold = openingThreshold;
this.openingInterval = openingUnit.toNanos(openingInterval);

View File

@ -106,7 +106,6 @@ public class MultiBackgroundInitializer
* Creates a new instance of {@code MultiBackgroundInitializer}.
*/
public MultiBackgroundInitializer() {
super();
}
/**

View File

@ -73,7 +73,6 @@ public class ThresholdCircuitBreaker extends AbstractCircuitBreaker<Long> {
* @param threshold the threshold.
*/
public ThresholdCircuitBreaker(final long threshold) {
super();
this.used = new AtomicLong(INITIAL_COUNT);
this.threshold = threshold;
}

View File

@ -119,7 +119,6 @@ public class LockingVisitors {
* @param writeLockSupplier Supplies the write lock, usually from the lock object.
*/
protected LockVisitor(final O object, L lock, Supplier<Lock> readLockSupplier, Supplier<Lock> writeLockSupplier) {
super();
this.object = Objects.requireNonNull(object, "object");
this.lock = Objects.requireNonNull(lock, "lock");
this.readLockSupplier = Objects.requireNonNull(readLockSupplier, "readLockSupplier");

View File

@ -97,7 +97,6 @@ public class ContextedException extends Exception implements ExceptionContext {
* The context information is stored using a default implementation.
*/
public ContextedException() {
super();
exceptionContext = new DefaultExceptionContext();
}

View File

@ -97,7 +97,6 @@ public class ContextedRuntimeException extends RuntimeException implements Excep
* The context information is stored using a default implementation.
*/
public ContextedRuntimeException() {
super();
exceptionContext = new DefaultExceptionContext();
}

View File

@ -938,6 +938,5 @@ public class ExceptionUtils {
* </p>
*/
public ExceptionUtils() {
super();
}
}

View File

@ -122,7 +122,6 @@ public final class Fraction extends Number implements Comparable<Fraction> {
* @param denominator the denominator, for example the seven in 'three sevenths'
*/
private Fraction(final int numerator, final int denominator) {
super();
this.numerator = numerator;
this.denominator = denominator;
}

View File

@ -79,7 +79,6 @@ public class NumberUtils {
* to operate.</p>
*/
public NumberUtils() {
super();
}
//-----------------------------------------------------------------------

View File

@ -45,7 +45,6 @@ public class MutableBoolean implements Mutable<Boolean>, Serializable, Comparabl
* Constructs a new MutableBoolean with the default value of false.
*/
public MutableBoolean() {
super();
}
/**
@ -54,7 +53,6 @@ public class MutableBoolean implements Mutable<Boolean>, Serializable, Comparabl
* @param value the initial value to store
*/
public MutableBoolean(final boolean value) {
super();
this.value = value;
}
@ -65,7 +63,6 @@ public class MutableBoolean implements Mutable<Boolean>, Serializable, Comparabl
* @throws NullPointerException if the object is null
*/
public MutableBoolean(final Boolean value) {
super();
this.value = value.booleanValue();
}

View File

@ -42,7 +42,6 @@ public class MutableByte extends Number implements Comparable<MutableByte>, Muta
* Constructs a new MutableByte with the default value of zero.
*/
public MutableByte() {
super();
}
/**
@ -51,7 +50,6 @@ public class MutableByte extends Number implements Comparable<MutableByte>, Muta
* @param value the initial value to store
*/
public MutableByte(final byte value) {
super();
this.value = value;
}
@ -62,7 +60,6 @@ public class MutableByte extends Number implements Comparable<MutableByte>, Muta
* @throws NullPointerException if the object is null
*/
public MutableByte(final Number value) {
super();
this.value = value.byteValue();
}
@ -74,7 +71,6 @@ public class MutableByte extends Number implements Comparable<MutableByte>, Muta
* @since 2.5
*/
public MutableByte(final String value) {
super();
this.value = Byte.parseByte(value);
}

View File

@ -40,7 +40,6 @@ public class MutableDouble extends Number implements Comparable<MutableDouble>,
* Constructs a new MutableDouble with the default value of zero.
*/
public MutableDouble() {
super();
}
/**
@ -49,7 +48,6 @@ public class MutableDouble extends Number implements Comparable<MutableDouble>,
* @param value the initial value to store
*/
public MutableDouble(final double value) {
super();
this.value = value;
}
@ -60,7 +58,6 @@ public class MutableDouble extends Number implements Comparable<MutableDouble>,
* @throws NullPointerException if the object is null
*/
public MutableDouble(final Number value) {
super();
this.value = value.doubleValue();
}
@ -72,7 +69,6 @@ public class MutableDouble extends Number implements Comparable<MutableDouble>,
* @since 2.5
*/
public MutableDouble(final String value) {
super();
this.value = Double.parseDouble(value);
}

View File

@ -40,7 +40,6 @@ public class MutableFloat extends Number implements Comparable<MutableFloat>, Mu
* Constructs a new MutableFloat with the default value of zero.
*/
public MutableFloat() {
super();
}
/**
@ -49,7 +48,6 @@ public class MutableFloat extends Number implements Comparable<MutableFloat>, Mu
* @param value the initial value to store
*/
public MutableFloat(final float value) {
super();
this.value = value;
}
@ -60,7 +58,6 @@ public class MutableFloat extends Number implements Comparable<MutableFloat>, Mu
* @throws NullPointerException if the object is null
*/
public MutableFloat(final Number value) {
super();
this.value = value.floatValue();
}
@ -72,7 +69,6 @@ public class MutableFloat extends Number implements Comparable<MutableFloat>, Mu
* @since 2.5
*/
public MutableFloat(final String value) {
super();
this.value = Float.parseFloat(value);
}

View File

@ -42,7 +42,6 @@ public class MutableInt extends Number implements Comparable<MutableInt>, Mutabl
* Constructs a new MutableInt with the default value of zero.
*/
public MutableInt() {
super();
}
/**
@ -51,7 +50,6 @@ public class MutableInt extends Number implements Comparable<MutableInt>, Mutabl
* @param value the initial value to store
*/
public MutableInt(final int value) {
super();
this.value = value;
}
@ -62,7 +60,6 @@ public class MutableInt extends Number implements Comparable<MutableInt>, Mutabl
* @throws NullPointerException if the object is null
*/
public MutableInt(final Number value) {
super();
this.value = value.intValue();
}
@ -74,7 +71,6 @@ public class MutableInt extends Number implements Comparable<MutableInt>, Mutabl
* @since 2.5
*/
public MutableInt(final String value) {
super();
this.value = Integer.parseInt(value);
}

View File

@ -42,7 +42,6 @@ public class MutableLong extends Number implements Comparable<MutableLong>, Muta
* Constructs a new MutableLong with the default value of zero.
*/
public MutableLong() {
super();
}
/**
@ -51,7 +50,6 @@ public class MutableLong extends Number implements Comparable<MutableLong>, Muta
* @param value the initial value to store
*/
public MutableLong(final long value) {
super();
this.value = value;
}
@ -62,7 +60,6 @@ public class MutableLong extends Number implements Comparable<MutableLong>, Muta
* @throws NullPointerException if the object is null
*/
public MutableLong(final Number value) {
super();
this.value = value.longValue();
}
@ -74,7 +71,6 @@ public class MutableLong extends Number implements Comparable<MutableLong>, Muta
* @since 2.5
*/
public MutableLong(final String value) {
super();
this.value = Long.parseLong(value);
}

View File

@ -41,7 +41,6 @@ public class MutableObject<T> implements Mutable<T>, Serializable {
* Constructs a new MutableObject with the default value of {@code null}.
*/
public MutableObject() {
super();
}
/**
@ -50,7 +49,6 @@ public class MutableObject<T> implements Mutable<T>, Serializable {
* @param value the initial value to store
*/
public MutableObject(final T value) {
super();
this.value = value;
}

View File

@ -42,7 +42,6 @@ public class MutableShort extends Number implements Comparable<MutableShort>, Mu
* Constructs a new MutableShort with the default value of zero.
*/
public MutableShort() {
super();
}
/**
@ -51,7 +50,6 @@ public class MutableShort extends Number implements Comparable<MutableShort>, Mu
* @param value the initial value to store
*/
public MutableShort(final short value) {
super();
this.value = value;
}
@ -62,7 +60,6 @@ public class MutableShort extends Number implements Comparable<MutableShort>, Mu
* @throws NullPointerException if the object is null
*/
public MutableShort(final Number value) {
super();
this.value = value.shortValue();
}
@ -74,7 +71,6 @@ public class MutableShort extends Number implements Comparable<MutableShort>, Mu
* @since 2.5
*/
public MutableShort(final String value) {
super();
this.value = Short.parseShort(value);
}

View File

@ -55,7 +55,6 @@ public class ConstructorUtils {
* instance to operate.</p>
*/
public ConstructorUtils() {
super();
}
/**

View File

@ -48,7 +48,6 @@ public class FieldUtils {
* </p>
*/
public FieldUtils() {
super();
}
/**

View File

@ -34,7 +34,6 @@ public class InheritanceUtils {
* instance to operate.</p>
*/
public InheritanceUtils() {
super();
}
/**

View File

@ -71,7 +71,6 @@ public class MethodUtils {
* instance to operate.</p>
*/
public MethodUtils() {
super();
}
/**

View File

@ -1926,7 +1926,6 @@ public class TypeUtils {
* </p>
*/
public TypeUtils() {
super();
}
}

View File

@ -54,7 +54,6 @@ public class FormattableUtils {
* instance to operate.</p>
*/
public FormattableUtils() {
super();
}
//-----------------------------------------------------------------------

View File

@ -115,7 +115,6 @@ public class StrBuilder implements CharSequence, Appendable, Serializable, Build
* @param initialCapacity the initial capacity, zero or less will be converted to 32
*/
public StrBuilder(int initialCapacity) {
super();
if (initialCapacity <= 0) {
initialCapacity = CAPACITY;
}
@ -129,7 +128,6 @@ public class StrBuilder implements CharSequence, Appendable, Serializable, Build
* @param str the string to copy, null treated as blank string
*/
public StrBuilder(final String str) {
super();
if (str == null) {
buffer = new char[CAPACITY];
} else {
@ -2930,7 +2928,6 @@ public class StrBuilder implements CharSequence, Appendable, Serializable, Build
* Default constructor.
*/
StrBuilderTokenizer() {
super();
}
/** {@inheritDoc} */
@ -2967,7 +2964,6 @@ public class StrBuilder implements CharSequence, Appendable, Serializable, Build
* Default constructor.
*/
StrBuilderReader() {
super();
}
/** {@inheritDoc} */
@ -3054,7 +3050,6 @@ public class StrBuilder implements CharSequence, Appendable, Serializable, Build
* Default constructor.
*/
StrBuilderWriter() {
super();
}
/** {@inheritDoc} */

View File

@ -94,7 +94,6 @@ public abstract class StrLookup<V> {
* Constructor.
*/
protected StrLookup() {
super();
}
/**

View File

@ -217,7 +217,6 @@ public abstract class StrMatcher {
* Constructor.
*/
protected StrMatcher() {
super();
}
/**
@ -285,7 +284,6 @@ public abstract class StrMatcher {
* @param chars the characters to match, must not be null
*/
CharSetMatcher(final char[] chars) {
super();
this.chars = chars.clone();
Arrays.sort(this.chars);
}
@ -319,7 +317,6 @@ public abstract class StrMatcher {
* @param ch the character to match
*/
CharMatcher(final char ch) {
super();
this.ch = ch;
}
@ -352,7 +349,6 @@ public abstract class StrMatcher {
* @param str the string to match, must not be null
*/
StringMatcher(final String str) {
super();
chars = str.toCharArray();
}
@ -396,7 +392,6 @@ public abstract class StrMatcher {
* Constructs a new instance of {@code NoMatcher}.
*/
NoMatcher() {
super();
}
/**
@ -424,7 +419,6 @@ public abstract class StrMatcher {
* Constructs a new instance of {@code TrimMatcher}.
*/
TrimMatcher() {
super();
}
/**

View File

@ -240,7 +240,6 @@ public class StrTokenizer implements ListIterator<String>, Cloneable {
* This constructor is normally used with {@link #reset(String)}.
*/
public StrTokenizer() {
super();
this.chars = null;
}
@ -251,7 +250,6 @@ public class StrTokenizer implements ListIterator<String>, Cloneable {
* @param input the string which is to be parsed
*/
public StrTokenizer(final String input) {
super();
if (input != null) {
chars = input.toCharArray();
} else {
@ -325,7 +323,6 @@ public class StrTokenizer implements ListIterator<String>, Cloneable {
* @param input the string which is to be parsed, not cloned
*/
public StrTokenizer(final char[] input) {
super();
this.chars = ArrayUtils.clone(input);
}

View File

@ -46,7 +46,6 @@ public class WordUtils {
* instance to operate.</p>
*/
public WordUtils() {
super();
}
// Wrapping

View File

@ -40,7 +40,6 @@ public class CalendarUtils {
* @param calendar A Calendar.
*/
public CalendarUtils(final Calendar calendar) {
super();
this.calendar = Objects.requireNonNull(calendar, "calendar");
}

View File

@ -201,7 +201,6 @@ public class DateFormatUtils {
* to operate.</p>
*/
public DateFormatUtils() {
super();
}
/**

View File

@ -146,7 +146,6 @@ public class DateUtils {
* instance to operate.</p>
*/
public DateUtils() {
super();
}
//-----------------------------------------------------------------------
@ -1804,7 +1803,6 @@ public class DateUtils {
* @param endFinal end date (inclusive)
*/
DateIterator(final Calendar startFinal, final Calendar endFinal) {
super();
this.endFinal = endFinal;
spot = startFinal;
spot.add(Calendar.DATE, -1);

View File

@ -57,7 +57,6 @@ public class DurationFormatUtils {
* to operate.</p>
*/
public DurationFormatUtils() {
super();
}
/**

View File

@ -959,7 +959,6 @@ public class FastDatePrinter implements DatePrinter, Serializable {
*
*/
UnpaddedMonthField() {
super();
}
/**
@ -1092,7 +1091,6 @@ public class FastDatePrinter implements DatePrinter, Serializable {
* Constructs an instance of {@code TwoDigitYearField}.
*/
TwoDigitYearField() {
super();
}
/**
@ -1130,7 +1128,6 @@ public class FastDatePrinter implements DatePrinter, Serializable {
* Constructs an instance of {@code TwoDigitMonthField}.
*/
TwoDigitMonthField() {
super();
}
/**

View File

@ -167,7 +167,6 @@ public final class ImmutablePair<L, R> extends Pair<L, R> {
* @param right the right value, may be null
*/
public ImmutablePair(final L left, final R right) {
super();
this.left = left;
this.right = right;
}

View File

@ -115,7 +115,6 @@ public final class ImmutableTriple<L, M, R> extends Triple<L, M, R> {
* @param right the right value, may be null
*/
public ImmutableTriple(final L left, final M middle, final R right) {
super();
this.left = left;
this.middle = middle;
this.right = right;

View File

@ -107,7 +107,6 @@ public class MutablePair<L, R> extends Pair<L, R> {
* Create a new pair instance of two nulls.
*/
public MutablePair() {
super();
}
/**
@ -117,7 +116,6 @@ public class MutablePair<L, R> extends Pair<L, R> {
* @param right the right value, may be null
*/
public MutablePair(final L left, final R right) {
super();
this.left = left;
this.right = right;
}

View File

@ -86,7 +86,6 @@ public class MutableTriple<L, M, R> extends Triple<L, M, R> {
* Create a new triple instance of three nulls.
*/
public MutableTriple() {
super();
}
/**
@ -97,7 +96,6 @@ public class MutableTriple<L, M, R> extends Triple<L, M, R> {
* @param right the right value, may be null
*/
public MutableTriple(final L left, final M middle, final R right) {
super();
this.left = left;
this.middle = middle;
this.right = right;

View File

@ -730,7 +730,6 @@ public class ObjectUtilsTest {
* @param value the CharSequence value
*/
NonComparableCharSequence(final String value) {
super();
Validate.notNull(value);
this.value = value;
}

View File

@ -280,7 +280,6 @@ public class BackgroundInitializerTest {
volatile int initializeCalls;
BackgroundInitializerTestImpl() {
super();
}
BackgroundInitializerTestImpl(final ExecutorService exec) {

View File

@ -62,7 +62,6 @@ public class ExceptionUtilsTest {
}
ExceptionWithCause(final Throwable cause) {
super();
setCause(cause);
}
@ -95,7 +94,6 @@ public class ExceptionUtilsTest {
@SuppressWarnings("unused")
NestableException() {
super();
}
NestableException(final Throwable t) {

View File

@ -97,7 +97,6 @@ class AClass extends AAClass<String>.BBClass<Number> {
public GClass gClass;
AClass(final AAClass<String> enclosingInstance) {
enclosingInstance.super();
}
}