You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2022/05/31 15:27:53 UTC
[commons-lang] branch master updated: Remove noisy inline comments.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git
The following commit(s) were added to refs/heads/master by this push:
new 6f3b00f36 Remove noisy inline comments.
6f3b00f36 is described below
commit 6f3b00f36dc9638abe6721b83fe02a065c0e4d6d
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue May 31 11:27:42 2022 -0400
Remove noisy inline comments.
---
.../java/org/apache/commons/lang3/ClassUtils.java | 2 -
.../apache/commons/lang3/StringEscapeUtils.java | 4 -
.../java/org/apache/commons/lang3/Validate.java | 51 ------------
.../commons/lang3/builder/CompareToBuilder.java | 1 -
.../commons/lang3/builder/EqualsBuilder.java | 6 --
.../commons/lang3/builder/HashCodeBuilder.java | 6 --
.../lang3/builder/StandardToStringStyle.java | 42 ----------
.../commons/lang3/builder/ToStringBuilder.java | 45 ----------
.../commons/lang3/builder/ToStringStyle.java | 96 ----------------------
.../org/apache/commons/lang3/math/Fraction.java | 15 ----
.../org/apache/commons/lang3/math/NumberUtils.java | 4 -
.../org/apache/commons/lang3/text/StrBuilder.java | 1 -
.../org/apache/commons/lang3/text/StrMatcher.java | 2 -
.../org/apache/commons/lang3/text/WordUtils.java | 2 -
.../apache/commons/lang3/time/FastDatePrinter.java | 1 -
.../org/apache/commons/lang3/StringUtilsTest.java | 2 -
.../lang3/builder/DefaultToStringStyleTest.java | 2 -
.../commons/lang3/builder/HashCodeBuilderTest.java | 2 -
.../lang3/builder/JsonToStringStyleTest.java | 2 -
.../lang3/builder/MultiLineToStringStyleTest.java | 2 -
.../builder/NoClassNameToStringStyleTest.java | 2 -
.../builder/NoFieldNamesToStringStyleTest.java | 2 -
.../lang3/builder/RecursiveToStringStyleTest.java | 2 -
.../builder/ShortPrefixToStringStyleTest.java | 2 -
.../lang3/builder/SimpleToStringStyleTest.java | 2 -
.../lang3/builder/StandardToStringStyleTest.java | 2 -
.../apache/commons/lang3/math/FractionTest.java | 1 -
.../apache/commons/lang3/math/NumberUtilsTest.java | 5 --
.../commons/lang3/mutable/MutableBooleanTest.java | 1 -
.../commons/lang3/mutable/MutableByteTest.java | 1 -
.../commons/lang3/mutable/MutableDoubleTest.java | 1 -
.../commons/lang3/mutable/MutableFloatTest.java | 1 -
.../commons/lang3/mutable/MutableIntTest.java | 1 -
.../commons/lang3/mutable/MutableLongTest.java | 1 -
.../commons/lang3/mutable/MutableObjectTest.java | 1 -
.../commons/lang3/mutable/MutableShortTest.java | 1 -
.../apache/commons/lang3/text/StrBuilderTest.java | 9 --
.../commons/lang3/text/StrTokenizerTest.java | 2 -
.../apache/commons/lang3/text/WordUtilsTest.java | 2 -
.../apache/commons/lang3/time/DateUtilsTest.java | 7 --
.../lang3/time/DurationFormatUtilsTest.java | 2 -
41 files changed, 336 deletions(-)
diff --git a/src/main/java/org/apache/commons/lang3/ClassUtils.java b/src/main/java/org/apache/commons/lang3/ClassUtils.java
index d28fb793f..bdd6e9ef1 100644
--- a/src/main/java/org/apache/commons/lang3/ClassUtils.java
+++ b/src/main/java/org/apache/commons/lang3/ClassUtils.java
@@ -745,8 +745,6 @@ public class ClassUtils {
return getPackageName(cls.getName());
}
- // Package name
- // ----------------------------------------------------------------------
/**
* <p>
* Gets the package name of an {@code Object}.
diff --git a/src/main/java/org/apache/commons/lang3/StringEscapeUtils.java b/src/main/java/org/apache/commons/lang3/StringEscapeUtils.java
index a5970da35..efda9a6a5 100644
--- a/src/main/java/org/apache/commons/lang3/StringEscapeUtils.java
+++ b/src/main/java/org/apache/commons/lang3/StringEscapeUtils.java
@@ -430,8 +430,6 @@ public class StringEscapeUtils {
public StringEscapeUtils() {
}
- // Java and JavaScript
- //--------------------------------------------------------------------------
/**
* <p>Escapes the characters in a {@code String} using Java String rules.</p>
*
@@ -559,8 +557,6 @@ public class StringEscapeUtils {
return UNESCAPE_JSON.translate(input);
}
- // HTML and XML
- //--------------------------------------------------------------------------
/**
* <p>Escapes the characters in a {@code String} using HTML entities.</p>
*
diff --git a/src/main/java/org/apache/commons/lang3/Validate.java b/src/main/java/org/apache/commons/lang3/Validate.java
index a7e077161..5b955ff37 100644
--- a/src/main/java/org/apache/commons/lang3/Validate.java
+++ b/src/main/java/org/apache/commons/lang3/Validate.java
@@ -82,9 +82,6 @@ public class Validate {
public Validate() {
}
- // isTrue
- //---------------------------------------------------------------------------------
-
/**
* <p>Validate that the argument condition is {@code true}; otherwise
* throwing an exception with the specified message. This method is useful when
@@ -184,9 +181,6 @@ public class Validate {
}
}
- // notNull
- //---------------------------------------------------------------------------------
-
/**
* <p>Validate that the specified argument is not {@code null};
* otherwise throwing an exception.
@@ -273,9 +267,6 @@ public class Validate {
return notEmpty(array, DEFAULT_NOT_EMPTY_ARRAY_EX_MESSAGE);
}
- // notEmpty collection
- //---------------------------------------------------------------------------------
-
/**
* <p>Validate that the specified argument collection is neither {@code null}
* nor a size of zero (no elements); otherwise throwing an exception
@@ -320,9 +311,6 @@ public class Validate {
return notEmpty(collection, DEFAULT_NOT_EMPTY_COLLECTION_EX_MESSAGE);
}
- // notEmpty map
- //---------------------------------------------------------------------------------
-
/**
* <p>Validate that the specified argument map is neither {@code null}
* nor a size of zero (no elements); otherwise throwing an exception
@@ -367,9 +355,6 @@ public class Validate {
return notEmpty(map, DEFAULT_NOT_EMPTY_MAP_EX_MESSAGE);
}
- // notEmpty string
- //---------------------------------------------------------------------------------
-
/**
* <p>Validate that the specified argument character sequence is
* neither {@code null} nor a length of zero (no characters);
@@ -415,9 +400,6 @@ public class Validate {
return notEmpty(chars, DEFAULT_NOT_EMPTY_CHAR_SEQUENCE_EX_MESSAGE);
}
- // notBlank string
- //---------------------------------------------------------------------------------
-
/**
* <p>Validate that the specified argument character sequence is
* neither {@code null}, a length of zero (no characters), empty
@@ -468,9 +450,6 @@ public class Validate {
return notBlank(chars, DEFAULT_NOT_BLANK_EX_MESSAGE);
}
- // noNullElements array
- //---------------------------------------------------------------------------------
-
/**
* <p>Validate that the specified argument array is neither
* {@code null} nor contains any elements that are {@code null};
@@ -530,9 +509,6 @@ public class Validate {
return noNullElements(array, DEFAULT_NO_NULL_ELEMENTS_ARRAY_EX_MESSAGE);
}
- // noNullElements iterable
- //---------------------------------------------------------------------------------
-
/**
* <p>Validate that the specified argument iterable is neither
* {@code null} nor contains any elements that are {@code null};
@@ -593,9 +569,6 @@ public class Validate {
return noNullElements(iterable, DEFAULT_NO_NULL_ELEMENTS_COLLECTION_EX_MESSAGE);
}
- // validIndex array
- //---------------------------------------------------------------------------------
-
/**
* <p>Validates that the index is within the bounds of the argument
* array; otherwise throwing an exception with the specified message.</p>
@@ -652,9 +625,6 @@ public class Validate {
return validIndex(array, index, DEFAULT_VALID_INDEX_ARRAY_EX_MESSAGE, Integer.valueOf(index));
}
- // validIndex collection
- //---------------------------------------------------------------------------------
-
/**
* <p>Validates that the index is within the bounds of the argument
* collection; otherwise throwing an exception with the specified message.</p>
@@ -708,9 +678,6 @@ public class Validate {
return validIndex(collection, index, DEFAULT_VALID_INDEX_COLLECTION_EX_MESSAGE, Integer.valueOf(index));
}
- // validIndex string
- //---------------------------------------------------------------------------------
-
/**
* <p>Validates that the index is within the bounds of the argument
* character sequence; otherwise throwing an exception with the
@@ -769,9 +736,6 @@ public class Validate {
return validIndex(chars, index, DEFAULT_VALID_INDEX_CHAR_SEQUENCE_EX_MESSAGE, Integer.valueOf(index));
}
- // validState
- //---------------------------------------------------------------------------------
-
/**
* <p>Validate that the stateful condition is {@code true}; otherwise
* throwing an exception. This method is useful when validating according
@@ -819,9 +783,6 @@ public class Validate {
}
}
- // matchesPattern
- //---------------------------------------------------------------------------------
-
/**
* <p>Validate that the specified argument character sequence matches the specified regular
* expression pattern; otherwise throwing an exception.</p>
@@ -868,9 +829,6 @@ public class Validate {
}
}
- // notNaN
- //---------------------------------------------------------------------------------
-
/**
* <p>Validates that the specified argument is not {@code NaN}; otherwise
* throwing an exception.</p>
@@ -910,9 +868,6 @@ public class Validate {
}
}
- // finite
- //---------------------------------------------------------------------------------
-
/**
* <p>Validates that the specified argument is not infinite or {@code NaN};
* otherwise throwing an exception.</p>
@@ -951,9 +906,6 @@ public class Validate {
}
}
- // inclusiveBetween
- //---------------------------------------------------------------------------------
-
/**
* <p>Validate that the specified argument object fall between the two
* inclusive values specified; otherwise, throws an exception.</p>
@@ -1227,9 +1179,6 @@ public class Validate {
}
}
- // isInstanceOf
- //---------------------------------------------------------------------------------
-
/**
* Validates that the argument is an instance of the specified class, if not throws an exception.
*
diff --git a/src/main/java/org/apache/commons/lang3/builder/CompareToBuilder.java b/src/main/java/org/apache/commons/lang3/builder/CompareToBuilder.java
index 1f790cf5a..bd2b5a400 100644
--- a/src/main/java/org/apache/commons/lang3/builder/CompareToBuilder.java
+++ b/src/main/java/org/apache/commons/lang3/builder/CompareToBuilder.java
@@ -458,7 +458,6 @@ public class CompareToBuilder implements Builder<Integer> {
}
}
- //-------------------------------------------------------------------------
/**
* Appends to the {@code builder} the comparison of
* two {@code long}s.
diff --git a/src/main/java/org/apache/commons/lang3/builder/EqualsBuilder.java b/src/main/java/org/apache/commons/lang3/builder/EqualsBuilder.java
index 41b69486e..48910a925 100644
--- a/src/main/java/org/apache/commons/lang3/builder/EqualsBuilder.java
+++ b/src/main/java/org/apache/commons/lang3/builder/EqualsBuilder.java
@@ -231,8 +231,6 @@ public class EqualsBuilder implements Builder<Boolean> {
bypassReflectionClasses.add(String.class); //hashCode field being lazy but not transient
}
- //-------------------------------------------------------------------------
-
/**
* Set whether to include transient fields when reflectively comparing objects.
* @param testTransients whether to test transient fields
@@ -596,8 +594,6 @@ public class EqualsBuilder implements Builder<Boolean> {
}
}
- //-------------------------------------------------------------------------
-
/**
* <p>Adds the result of {@code super.equals()} to this builder.</p>
*
@@ -613,8 +609,6 @@ public class EqualsBuilder implements Builder<Boolean> {
return this;
}
- //-------------------------------------------------------------------------
-
/**
* <p>Test if two {@code Object}s are equal using either
* #{@link #reflectionAppend(Object, Object)}, if object are non
diff --git a/src/main/java/org/apache/commons/lang3/builder/HashCodeBuilder.java b/src/main/java/org/apache/commons/lang3/builder/HashCodeBuilder.java
index a5bd230f8..46167659c 100644
--- a/src/main/java/org/apache/commons/lang3/builder/HashCodeBuilder.java
+++ b/src/main/java/org/apache/commons/lang3/builder/HashCodeBuilder.java
@@ -448,8 +448,6 @@ public class HashCodeBuilder implements Builder<Integer> {
return reflectionHashCode(object, ReflectionToStringBuilder.toNoNullStringArray(excludeFields));
}
- // -------------------------------------------------------------------------
-
/**
* <p>
* Uses reflection to build a valid hash code from the fields of {@code object}.
@@ -619,8 +617,6 @@ public class HashCodeBuilder implements Builder<Integer> {
return this;
}
- // -------------------------------------------------------------------------
-
/**
* <p>
* Append a {@code hashCode} for a {@code byte}.
@@ -635,8 +631,6 @@ public class HashCodeBuilder implements Builder<Integer> {
return this;
}
- // -------------------------------------------------------------------------
-
/**
* <p>
* Append a {@code hashCode} for a {@code byte} array.
diff --git a/src/main/java/org/apache/commons/lang3/builder/StandardToStringStyle.java b/src/main/java/org/apache/commons/lang3/builder/StandardToStringStyle.java
index 72cd70fad..b60f13dca 100644
--- a/src/main/java/org/apache/commons/lang3/builder/StandardToStringStyle.java
+++ b/src/main/java/org/apache/commons/lang3/builder/StandardToStringStyle.java
@@ -42,8 +42,6 @@ public class StandardToStringStyle extends ToStringStyle {
public StandardToStringStyle() {
}
- //---------------------------------------------------------------------
-
/**
* <p>Gets whether to use the class name.</p>
*
@@ -64,8 +62,6 @@ public class StandardToStringStyle extends ToStringStyle {
super.setUseClassName(useClassName);
}
- //---------------------------------------------------------------------
-
/**
* <p>Gets whether to output short or long class names.</p>
*
@@ -88,8 +84,6 @@ public class StandardToStringStyle extends ToStringStyle {
super.setUseShortClassName(useShortClassName);
}
- //---------------------------------------------------------------------
-
/**
* <p>Gets whether to use the identity hash code.</p>
* @return the current useIdentityHashCode flag
@@ -109,8 +103,6 @@ public class StandardToStringStyle extends ToStringStyle {
super.setUseIdentityHashCode(useIdentityHashCode);
}
- //---------------------------------------------------------------------
-
/**
* <p>Gets whether to use the field names passed in.</p>
*
@@ -131,8 +123,6 @@ public class StandardToStringStyle extends ToStringStyle {
super.setUseFieldNames(useFieldNames);
}
- //---------------------------------------------------------------------
-
/**
* <p>Gets whether to use full detail when the caller doesn't
* specify.</p>
@@ -155,8 +145,6 @@ public class StandardToStringStyle extends ToStringStyle {
super.setDefaultFullDetail(defaultFullDetail);
}
- //---------------------------------------------------------------------
-
/**
* <p>Gets whether to output array content detail.</p>
*
@@ -177,8 +165,6 @@ public class StandardToStringStyle extends ToStringStyle {
super.setArrayContentDetail(arrayContentDetail);
}
- //---------------------------------------------------------------------
-
/**
* <p>Gets the array start text.</p>
*
@@ -202,8 +188,6 @@ public class StandardToStringStyle extends ToStringStyle {
super.setArrayStart(arrayStart);
}
- //---------------------------------------------------------------------
-
/**
* <p>Gets the array end text.</p>
*
@@ -227,8 +211,6 @@ public class StandardToStringStyle extends ToStringStyle {
super.setArrayEnd(arrayEnd);
}
- //---------------------------------------------------------------------
-
/**
* <p>Gets the array separator text.</p>
*
@@ -252,8 +234,6 @@ public class StandardToStringStyle extends ToStringStyle {
super.setArraySeparator(arraySeparator);
}
- //---------------------------------------------------------------------
-
/**
* <p>Gets the content start text.</p>
*
@@ -277,8 +257,6 @@ public class StandardToStringStyle extends ToStringStyle {
super.setContentStart(contentStart);
}
- //---------------------------------------------------------------------
-
/**
* <p>Gets the content end text.</p>
*
@@ -302,8 +280,6 @@ public class StandardToStringStyle extends ToStringStyle {
super.setContentEnd(contentEnd);
}
- //---------------------------------------------------------------------
-
/**
* <p>Gets the field name value separator text.</p>
*
@@ -327,8 +303,6 @@ public class StandardToStringStyle extends ToStringStyle {
super.setFieldNameValueSeparator(fieldNameValueSeparator);
}
- //---------------------------------------------------------------------
-
/**
* <p>Gets the field separator text.</p>
*
@@ -352,8 +326,6 @@ public class StandardToStringStyle extends ToStringStyle {
super.setFieldSeparator(fieldSeparator);
}
- //---------------------------------------------------------------------
-
/**
* <p>Gets whether the field separator should be added at the start
* of each buffer.</p>
@@ -378,8 +350,6 @@ public class StandardToStringStyle extends ToStringStyle {
super.setFieldSeparatorAtStart(fieldSeparatorAtStart);
}
- //---------------------------------------------------------------------
-
/**
* <p>Gets whether the field separator should be added at the end
* of each buffer.</p>
@@ -404,8 +374,6 @@ public class StandardToStringStyle extends ToStringStyle {
super.setFieldSeparatorAtEnd(fieldSeparatorAtEnd);
}
- //---------------------------------------------------------------------
-
/**
* <p>Gets the text to output when {@code null} found.</p>
*
@@ -429,8 +397,6 @@ public class StandardToStringStyle extends ToStringStyle {
super.setNullText(nullText);
}
- //---------------------------------------------------------------------
-
/**
* <p>Gets the text to output when a {@code Collection},
* {@code Map} or {@code Array} size is output.</p>
@@ -460,8 +426,6 @@ public class StandardToStringStyle extends ToStringStyle {
super.setSizeStartText(sizeStartText);
}
- //---------------------------------------------------------------------
-
/**
* <p>Gets the end text to output when a {@code Collection},
* {@code Map} or {@code Array} size is output.</p>
@@ -491,8 +455,6 @@ public class StandardToStringStyle extends ToStringStyle {
super.setSizeEndText(sizeEndText);
}
- //---------------------------------------------------------------------
-
/**
* <p>Gets the start text to output when an {@code Object} is
* output in summary mode.</p>
@@ -522,8 +484,6 @@ public class StandardToStringStyle extends ToStringStyle {
super.setSummaryObjectStartText(summaryObjectStartText);
}
- //---------------------------------------------------------------------
-
/**
* <p>Gets the end text to output when an {@code Object} is
* output in summary mode.</p>
@@ -553,6 +513,4 @@ public class StandardToStringStyle extends ToStringStyle {
super.setSummaryObjectEndText(summaryObjectEndText);
}
- //---------------------------------------------------------------------
-
}
diff --git a/src/main/java/org/apache/commons/lang3/builder/ToStringBuilder.java b/src/main/java/org/apache/commons/lang3/builder/ToStringBuilder.java
index 631c6e47e..5830051a1 100644
--- a/src/main/java/org/apache/commons/lang3/builder/ToStringBuilder.java
+++ b/src/main/java/org/apache/commons/lang3/builder/ToStringBuilder.java
@@ -93,8 +93,6 @@ public class ToStringBuilder implements Builder<String> {
*/
private static volatile ToStringStyle defaultStyle = ToStringStyle.DEFAULT_STYLE;
- //----------------------------------------------------------------------------
-
/**
* <p>Gets the default {@code ToStringStyle} to use.</p>
*
@@ -136,7 +134,6 @@ public class ToStringBuilder implements Builder<String> {
defaultStyle = Validate.notNull(style, "style");
}
- //----------------------------------------------------------------------------
/**
* <p>Uses {@code ReflectionToStringBuilder} to generate a
* {@code toString} for the specified object.</p>
@@ -197,8 +194,6 @@ public class ToStringBuilder implements Builder<String> {
return ReflectionToStringBuilder.toString(object, style, outputTransients, false, reflectUpToClass);
}
- //----------------------------------------------------------------------------
-
/**
* Current toString buffer, not null.
*/
@@ -260,8 +255,6 @@ public class ToStringBuilder implements Builder<String> {
style.appendStart(buffer, object);
}
- //----------------------------------------------------------------------------
-
/**
* <p>Append to the {@code toString} a {@code boolean}
* value.</p>
@@ -274,8 +267,6 @@ public class ToStringBuilder implements Builder<String> {
return this;
}
- //----------------------------------------------------------------------------
-
/**
* <p>Append to the {@code toString} a {@code boolean}
* array.</p>
@@ -288,8 +279,6 @@ public class ToStringBuilder implements Builder<String> {
return this;
}
- //----------------------------------------------------------------------------
-
/**
* <p>Append to the {@code toString} a {@code byte}
* value.</p>
@@ -302,8 +291,6 @@ public class ToStringBuilder implements Builder<String> {
return this;
}
- //----------------------------------------------------------------------------
-
/**
* <p>Append to the {@code toString} a {@code byte}
* array.</p>
@@ -316,8 +303,6 @@ public class ToStringBuilder implements Builder<String> {
return this;
}
- //----------------------------------------------------------------------------
-
/**
* <p>Append to the {@code toString} a {@code char}
* value.</p>
@@ -330,8 +315,6 @@ public class ToStringBuilder implements Builder<String> {
return this;
}
- //----------------------------------------------------------------------------
-
/**
* <p>Append to the {@code toString} a {@code char}
* array.</p>
@@ -344,8 +327,6 @@ public class ToStringBuilder implements Builder<String> {
return this;
}
- //----------------------------------------------------------------------------
-
/**
* <p>Append to the {@code toString} a {@code double}
* value.</p>
@@ -358,8 +339,6 @@ public class ToStringBuilder implements Builder<String> {
return this;
}
- //----------------------------------------------------------------------------
-
/**
* <p>Append to the {@code toString} a {@code double}
* array.</p>
@@ -372,8 +351,6 @@ public class ToStringBuilder implements Builder<String> {
return this;
}
- //----------------------------------------------------------------------------
-
/**
* <p>Append to the {@code toString} a {@code float}
* value.</p>
@@ -386,8 +363,6 @@ public class ToStringBuilder implements Builder<String> {
return this;
}
- //----------------------------------------------------------------------------
-
/**
* <p>Append to the {@code toString} a {@code float}
* array.</p>
@@ -400,8 +375,6 @@ public class ToStringBuilder implements Builder<String> {
return this;
}
- //----------------------------------------------------------------------------
-
/**
* <p>Append to the {@code toString} an {@code int}
* value.</p>
@@ -414,8 +387,6 @@ public class ToStringBuilder implements Builder<String> {
return this;
}
- //----------------------------------------------------------------------------
-
/**
* <p>Append to the {@code toString} an {@code int}
* array.</p>
@@ -428,8 +399,6 @@ public class ToStringBuilder implements Builder<String> {
return this;
}
- //----------------------------------------------------------------------------
-
/**
* <p>Append to the {@code toString} a {@code long}
* value.</p>
@@ -442,8 +411,6 @@ public class ToStringBuilder implements Builder<String> {
return this;
}
- //----------------------------------------------------------------------------
-
/**
* <p>Append to the {@code toString} a {@code long}
* array.</p>
@@ -456,8 +423,6 @@ public class ToStringBuilder implements Builder<String> {
return this;
}
- //----------------------------------------------------------------------------
-
/**
* <p>Append to the {@code toString} an {@code Object}
* value.</p>
@@ -470,8 +435,6 @@ public class ToStringBuilder implements Builder<String> {
return this;
}
- //----------------------------------------------------------------------------
-
/**
* <p>Append to the {@code toString} an {@code Object}
* array.</p>
@@ -484,8 +447,6 @@ public class ToStringBuilder implements Builder<String> {
return this;
}
- //----------------------------------------------------------------------------
-
/**
* <p>Append to the {@code toString} a {@code short}
* value.</p>
@@ -498,8 +459,6 @@ public class ToStringBuilder implements Builder<String> {
return this;
}
- //----------------------------------------------------------------------------
-
/**
* <p>Append to the {@code toString} a {@code short}
* array.</p>
@@ -954,8 +913,6 @@ public class ToStringBuilder implements Builder<String> {
return this;
}
- //----------------------------------------------------------------------------
-
/**
* <p>Append the {@code toString} from the superclass.</p>
*
@@ -1028,8 +985,6 @@ public class ToStringBuilder implements Builder<String> {
return buffer;
}
- //----------------------------------------------------------------------------
-
/**
* <p>Gets the {@code ToStringStyle} being used.</p>
*
diff --git a/src/main/java/org/apache/commons/lang3/builder/ToStringStyle.java b/src/main/java/org/apache/commons/lang3/builder/ToStringStyle.java
index 737c67cbe..70f642f32 100644
--- a/src/main/java/org/apache/commons/lang3/builder/ToStringStyle.java
+++ b/src/main/java/org/apache/commons/lang3/builder/ToStringStyle.java
@@ -351,16 +351,12 @@ public abstract class ToStringStyle implements Serializable {
*/
private String summaryObjectEndText = ">";
- //----------------------------------------------------------------------------
-
/**
* <p>Constructor.</p>
*/
protected ToStringStyle() {
}
- //----------------------------------------------------------------------------
-
/**
* <p>Append to the {@code toString} the superclass toString.</p>
* <p>NOTE: It assumes that the toString has been created from the same ToStringStyle. </p>
@@ -443,8 +439,6 @@ public abstract class ToStringStyle implements Serializable {
}
}
- //----------------------------------------------------------------------------
-
/**
* <p>Append to the {@code toString} an {@code Object}
* value, printing the full {@code toString} of the
@@ -653,8 +647,6 @@ public abstract class ToStringStyle implements Serializable {
buffer.append(summaryObjectEndText);
}
- //----------------------------------------------------------------------------
-
/**
* <p>Append to the {@code toString} a {@code long}
* value.</p>
@@ -681,8 +673,6 @@ public abstract class ToStringStyle implements Serializable {
buffer.append(value);
}
- //----------------------------------------------------------------------------
-
/**
* <p>Append to the {@code toString} an {@code int}
* value.</p>
@@ -709,8 +699,6 @@ public abstract class ToStringStyle implements Serializable {
buffer.append(value);
}
- //----------------------------------------------------------------------------
-
/**
* <p>Append to the {@code toString} a {@code short}
* value.</p>
@@ -737,8 +725,6 @@ public abstract class ToStringStyle implements Serializable {
buffer.append(value);
}
- //----------------------------------------------------------------------------
-
/**
* <p>Append to the {@code toString} a {@code byte}
* value.</p>
@@ -765,8 +751,6 @@ public abstract class ToStringStyle implements Serializable {
buffer.append(value);
}
- //----------------------------------------------------------------------------
-
/**
* <p>Append to the {@code toString} a {@code char}
* value.</p>
@@ -793,8 +777,6 @@ public abstract class ToStringStyle implements Serializable {
buffer.append(value);
}
- //----------------------------------------------------------------------------
-
/**
* <p>Append to the {@code toString} a {@code double}
* value.</p>
@@ -821,8 +803,6 @@ public abstract class ToStringStyle implements Serializable {
buffer.append(value);
}
- //----------------------------------------------------------------------------
-
/**
* <p>Append to the {@code toString} a {@code float}
* value.</p>
@@ -849,8 +829,6 @@ public abstract class ToStringStyle implements Serializable {
buffer.append(value);
}
- //----------------------------------------------------------------------------
-
/**
* <p>Append to the {@code toString} a {@code boolean}
* value.</p>
@@ -903,8 +881,6 @@ public abstract class ToStringStyle implements Serializable {
appendFieldEnd(buffer, fieldName);
}
- //----------------------------------------------------------------------------
-
/**
* <p>Append to the {@code toString} the detail of an
* {@code Object} array.</p>
@@ -976,8 +952,6 @@ public abstract class ToStringStyle implements Serializable {
appendSummarySize(buffer, fieldName, array.length);
}
- //----------------------------------------------------------------------------
-
/**
* <p>Append to the {@code toString} a {@code long}
* array.</p>
@@ -1037,8 +1011,6 @@ public abstract class ToStringStyle implements Serializable {
appendSummarySize(buffer, fieldName, array.length);
}
- //----------------------------------------------------------------------------
-
/**
* <p>Append to the {@code toString} an {@code int}
* array.</p>
@@ -1098,8 +1070,6 @@ public abstract class ToStringStyle implements Serializable {
appendSummarySize(buffer, fieldName, array.length);
}
- //----------------------------------------------------------------------------
-
/**
* <p>Append to the {@code toString} a {@code short}
* array.</p>
@@ -1159,8 +1129,6 @@ public abstract class ToStringStyle implements Serializable {
appendSummarySize(buffer, fieldName, array.length);
}
- //----------------------------------------------------------------------------
-
/**
* <p>Append to the {@code toString} a {@code byte}
* array.</p>
@@ -1220,8 +1188,6 @@ public abstract class ToStringStyle implements Serializable {
appendSummarySize(buffer, fieldName, array.length);
}
- //----------------------------------------------------------------------------
-
/**
* <p>Append to the {@code toString} a {@code char}
* array.</p>
@@ -1281,8 +1247,6 @@ public abstract class ToStringStyle implements Serializable {
appendSummarySize(buffer, fieldName, array.length);
}
- //----------------------------------------------------------------------------
-
/**
* <p>Append to the {@code toString} a {@code double}
* array.</p>
@@ -1342,8 +1306,6 @@ public abstract class ToStringStyle implements Serializable {
appendSummarySize(buffer, fieldName, array.length);
}
- //----------------------------------------------------------------------------
-
/**
* <p>Append to the {@code toString} a {@code float}
* array.</p>
@@ -1403,8 +1365,6 @@ public abstract class ToStringStyle implements Serializable {
appendSummarySize(buffer, fieldName, array.length);
}
- //----------------------------------------------------------------------------
-
/**
* <p>Append to the {@code toString} a {@code boolean}
* array.</p>
@@ -1464,8 +1424,6 @@ public abstract class ToStringStyle implements Serializable {
appendSummarySize(buffer, fieldName, array.length);
}
- //----------------------------------------------------------------------------
-
/**
* <p>Append to the {@code toString} the class name.</p>
*
@@ -1617,8 +1575,6 @@ public abstract class ToStringStyle implements Serializable {
// Setters and getters for the customizable parts of the style
// These methods are not expected to be overridden, except to make public
// (They are not public so that immutable subclasses can be written)
- //---------------------------------------------------------------------
-
/**
* <p>Gets whether to use the class name.</p>
*
@@ -1637,8 +1593,6 @@ public abstract class ToStringStyle implements Serializable {
this.useClassName = useClassName;
}
- //---------------------------------------------------------------------
-
/**
* <p>Gets whether to output short or long class names.</p>
*
@@ -1659,8 +1613,6 @@ public abstract class ToStringStyle implements Serializable {
this.useShortClassName = useShortClassName;
}
- //---------------------------------------------------------------------
-
/**
* <p>Gets whether to use the identity hash code.</p>
*
@@ -1679,8 +1631,6 @@ public abstract class ToStringStyle implements Serializable {
this.useIdentityHashCode = useIdentityHashCode;
}
- //---------------------------------------------------------------------
-
/**
* <p>Gets whether to use the field names passed in.</p>
*
@@ -1699,8 +1649,6 @@ public abstract class ToStringStyle implements Serializable {
this.useFieldNames = useFieldNames;
}
- //---------------------------------------------------------------------
-
/**
* <p>Gets whether to use full detail when the caller doesn't
* specify.</p>
@@ -1721,8 +1669,6 @@ public abstract class ToStringStyle implements Serializable {
this.defaultFullDetail = defaultFullDetail;
}
- //---------------------------------------------------------------------
-
/**
* <p>Gets whether to output array content detail.</p>
*
@@ -1741,8 +1687,6 @@ public abstract class ToStringStyle implements Serializable {
this.arrayContentDetail = arrayContentDetail;
}
- //---------------------------------------------------------------------
-
/**
* <p>Gets the array start text.</p>
*
@@ -1767,8 +1711,6 @@ public abstract class ToStringStyle implements Serializable {
this.arrayStart = arrayStart;
}
- //---------------------------------------------------------------------
-
/**
* <p>Gets the array end text.</p>
*
@@ -1793,8 +1735,6 @@ public abstract class ToStringStyle implements Serializable {
this.arrayEnd = arrayEnd;
}
- //---------------------------------------------------------------------
-
/**
* <p>Gets the array separator text.</p>
*
@@ -1819,8 +1759,6 @@ public abstract class ToStringStyle implements Serializable {
this.arraySeparator = arraySeparator;
}
- //---------------------------------------------------------------------
-
/**
* <p>Gets the content start text.</p>
*
@@ -1845,8 +1783,6 @@ public abstract class ToStringStyle implements Serializable {
this.contentStart = contentStart;
}
- //---------------------------------------------------------------------
-
/**
* <p>Gets the content end text.</p>
*
@@ -1871,8 +1807,6 @@ public abstract class ToStringStyle implements Serializable {
this.contentEnd = contentEnd;
}
- //---------------------------------------------------------------------
-
/**
* <p>Gets the field name value separator text.</p>
*
@@ -1897,8 +1831,6 @@ public abstract class ToStringStyle implements Serializable {
this.fieldNameValueSeparator = fieldNameValueSeparator;
}
- //---------------------------------------------------------------------
-
/**
* <p>Gets the field separator text.</p>
*
@@ -1923,8 +1855,6 @@ public abstract class ToStringStyle implements Serializable {
this.fieldSeparator = fieldSeparator;
}
- //---------------------------------------------------------------------
-
/**
* <p>Gets whether the field separator should be added at the start
* of each buffer.</p>
@@ -1947,8 +1877,6 @@ public abstract class ToStringStyle implements Serializable {
this.fieldSeparatorAtStart = fieldSeparatorAtStart;
}
- //---------------------------------------------------------------------
-
/**
* <p>Gets whether the field separator should be added at the end
* of each buffer.</p>
@@ -1971,8 +1899,6 @@ public abstract class ToStringStyle implements Serializable {
this.fieldSeparatorAtEnd = fieldSeparatorAtEnd;
}
- //---------------------------------------------------------------------
-
/**
* <p>Gets the text to output when {@code null} found.</p>
*
@@ -1997,8 +1923,6 @@ public abstract class ToStringStyle implements Serializable {
this.nullText = nullText;
}
- //---------------------------------------------------------------------
-
/**
* <p>Gets the start text to output when a {@code Collection},
* {@code Map} or array size is output.</p>
@@ -2029,8 +1953,6 @@ public abstract class ToStringStyle implements Serializable {
this.sizeStartText = sizeStartText;
}
- //---------------------------------------------------------------------
-
/**
* <p>Gets the end text to output when a {@code Collection},
* {@code Map} or array size is output.</p>
@@ -2061,8 +1983,6 @@ public abstract class ToStringStyle implements Serializable {
this.sizeEndText = sizeEndText;
}
- //---------------------------------------------------------------------
-
/**
* <p>Gets the start text to output when an {@code Object} is
* output in summary mode.</p>
@@ -2093,8 +2013,6 @@ public abstract class ToStringStyle implements Serializable {
this.summaryObjectStartText = summaryObjectStartText;
}
- //---------------------------------------------------------------------
-
/**
* <p>Gets the end text to output when an {@code Object} is
* output in summary mode.</p>
@@ -2125,8 +2043,6 @@ public abstract class ToStringStyle implements Serializable {
this.summaryObjectEndText = summaryObjectEndText;
}
- //----------------------------------------------------------------------------
-
/**
* <p>Default {@code ToStringStyle}.</p>
*
@@ -2161,8 +2077,6 @@ public abstract class ToStringStyle implements Serializable {
}
- //----------------------------------------------------------------------------
-
/**
* <p>{@code ToStringStyle} that does not print out
* the field names.</p>
@@ -2194,8 +2108,6 @@ public abstract class ToStringStyle implements Serializable {
}
- //----------------------------------------------------------------------------
-
/**
* <p>{@code ToStringStyle} that prints out the short
* class name and no identity hashcode.</p>
@@ -2227,8 +2139,6 @@ public abstract class ToStringStyle implements Serializable {
}
- //----------------------------------------------------------------------------
-
/**
* <p>{@code ToStringStyle} that does not print out the
* classname, identity hashcode, content start or field name.</p>
@@ -2263,8 +2173,6 @@ public abstract class ToStringStyle implements Serializable {
}
- //----------------------------------------------------------------------------
-
/**
* <p>{@code ToStringStyle} that outputs on multiple lines.</p>
*
@@ -2298,8 +2206,6 @@ public abstract class ToStringStyle implements Serializable {
}
- //----------------------------------------------------------------------------
-
/**
* <p>{@code ToStringStyle} that does not print out the classname
* and identity hash code but prints content start and field names.</p>
@@ -2332,8 +2238,6 @@ public abstract class ToStringStyle implements Serializable {
}
- // ----------------------------------------------------------------------------
-
/**
* <p>
* {@code ToStringStyle} that outputs with JSON format.
diff --git a/src/main/java/org/apache/commons/lang3/math/Fraction.java b/src/main/java/org/apache/commons/lang3/math/Fraction.java
index c046d71a7..92c3d9050 100644
--- a/src/main/java/org/apache/commons/lang3/math/Fraction.java
+++ b/src/main/java/org/apache/commons/lang3/math/Fraction.java
@@ -343,9 +343,6 @@ public final class Fraction extends Number implements Comparable<Fraction> {
return getFraction(numer, denom);
}
- // Accessors
- //-------------------------------------------------------------------
-
/**
* <p>Gets the numerator part of the fraction.</p>
*
@@ -397,9 +394,6 @@ public final class Fraction extends Number implements Comparable<Fraction> {
return numerator / denominator;
}
- // Number methods
- //-------------------------------------------------------------------
-
/**
* <p>Gets the fraction as an {@code int}. This returns the whole number
* part of the fraction.</p>
@@ -444,9 +438,6 @@ public final class Fraction extends Number implements Comparable<Fraction> {
return (double) numerator / (double) denominator;
}
- // Calculations
- //-------------------------------------------------------------------
-
/**
* <p>Reduce the fraction to the smallest values for the numerator and
* denominator, returning the result.</p>
@@ -619,9 +610,6 @@ public final class Fraction extends Number implements Comparable<Fraction> {
return -u * (1 << k); // gcd is u*2^k
}
- // Arithmetic
- //-------------------------------------------------------------------
-
/**
* Multiply two integers, checking for overflow.
*
@@ -808,9 +796,6 @@ public final class Fraction extends Number implements Comparable<Fraction> {
return multiplyBy(fraction.invert());
}
- // Basics
- //-------------------------------------------------------------------
-
/**
* <p>Compares this fraction to another object to test if they are equal.</p>.
*
diff --git a/src/main/java/org/apache/commons/lang3/math/NumberUtils.java b/src/main/java/org/apache/commons/lang3/math/NumberUtils.java
index fd07b680a..a44c59cf5 100644
--- a/src/main/java/org/apache/commons/lang3/math/NumberUtils.java
+++ b/src/main/java/org/apache/commons/lang3/math/NumberUtils.java
@@ -1026,8 +1026,6 @@ public class NumberUtils {
return new BigDecimal(str);
}
- // Min in array
- //--------------------------------------------------------------------
/**
* <p>Returns the minimum value in an array.</p>
*
@@ -1180,8 +1178,6 @@ public class NumberUtils {
return min;
}
- // Max in array
- //--------------------------------------------------------------------
/**
* <p>Returns the maximum value in an array.</p>
*
diff --git a/src/main/java/org/apache/commons/lang3/text/StrBuilder.java b/src/main/java/org/apache/commons/lang3/text/StrBuilder.java
index 22c92755d..b261059a4 100644
--- a/src/main/java/org/apache/commons/lang3/text/StrBuilder.java
+++ b/src/main/java/org/apache/commons/lang3/text/StrBuilder.java
@@ -2055,7 +2055,6 @@ public class StrBuilder implements CharSequence, Appendable, Serializable, Build
return replace(matcher, replaceStr, 0, size, 1);
}
- // -----------------------------------------------------------------------
/**
* Advanced search and replaces within the builder using a matcher.
* <p>
diff --git a/src/main/java/org/apache/commons/lang3/text/StrMatcher.java b/src/main/java/org/apache/commons/lang3/text/StrMatcher.java
index 938e9b354..485cdb9d8 100644
--- a/src/main/java/org/apache/commons/lang3/text/StrMatcher.java
+++ b/src/main/java/org/apache/commons/lang3/text/StrMatcher.java
@@ -74,8 +74,6 @@ public abstract class StrMatcher {
*/
private static final StrMatcher NONE_MATCHER = new NoMatcher();
- // -----------------------------------------------------------------------
-
/**
* Returns a matcher which matches the comma character.
*
diff --git a/src/main/java/org/apache/commons/lang3/text/WordUtils.java b/src/main/java/org/apache/commons/lang3/text/WordUtils.java
index 46e36601f..363276603 100644
--- a/src/main/java/org/apache/commons/lang3/text/WordUtils.java
+++ b/src/main/java/org/apache/commons/lang3/text/WordUtils.java
@@ -48,8 +48,6 @@ public class WordUtils {
public WordUtils() {
}
- // Wrapping
- //--------------------------------------------------------------------------
/**
* <p>Wraps a single line of text, identifying words by {@code ' '}.</p>
*
diff --git a/src/main/java/org/apache/commons/lang3/time/FastDatePrinter.java b/src/main/java/org/apache/commons/lang3/time/FastDatePrinter.java
index 38f79a229..7c006b1fb 100644
--- a/src/main/java/org/apache/commons/lang3/time/FastDatePrinter.java
+++ b/src/main/java/org/apache/commons/lang3/time/FastDatePrinter.java
@@ -1517,7 +1517,6 @@ public class FastDatePrinter implements DatePrinter, Serializable {
}
}
- // ----------------------------------------------------------------------
/**
* <p>Inner class that acts as a compound key for time zone names.</p>
*/
diff --git a/src/test/java/org/apache/commons/lang3/StringUtilsTest.java b/src/test/java/org/apache/commons/lang3/StringUtilsTest.java
index 74b836906..ad4bffb9b 100644
--- a/src/test/java/org/apache/commons/lang3/StringUtilsTest.java
+++ b/src/test/java/org/apache/commons/lang3/StringUtilsTest.java
@@ -3159,8 +3159,6 @@ public class StringUtilsTest {
assertEquals("", StringUtils.truncate("abcdefghijklmno", Integer.MAX_VALUE, Integer.MAX_VALUE));
}
- // -----------------------------------------------------------------------
-
@Test
public void testUnCapitalize() {
assertNull(StringUtils.uncapitalize(null));
diff --git a/src/test/java/org/apache/commons/lang3/builder/DefaultToStringStyleTest.java b/src/test/java/org/apache/commons/lang3/builder/DefaultToStringStyleTest.java
index 13bf2ba72..b2302c5c7 100644
--- a/src/test/java/org/apache/commons/lang3/builder/DefaultToStringStyleTest.java
+++ b/src/test/java/org/apache/commons/lang3/builder/DefaultToStringStyleTest.java
@@ -44,8 +44,6 @@ public class DefaultToStringStyleTest {
ToStringBuilder.setDefaultStyle(ToStringStyle.DEFAULT_STYLE);
}
- //----------------------------------------------------------------
-
@Test
public void testBlank() {
assertEquals(baseStr + "[]", new ToStringBuilder(base).toString());
diff --git a/src/test/java/org/apache/commons/lang3/builder/HashCodeBuilderTest.java b/src/test/java/org/apache/commons/lang3/builder/HashCodeBuilderTest.java
index a9c839c54..216517243 100644
--- a/src/test/java/org/apache/commons/lang3/builder/HashCodeBuilderTest.java
+++ b/src/test/java/org/apache/commons/lang3/builder/HashCodeBuilderTest.java
@@ -52,8 +52,6 @@ public class HashCodeBuilderTest {
}
}
- // -----------------------------------------------------------------------
-
@Test
public void testConstructorExZero() {
assertThrows(IllegalArgumentException.class, () -> new HashCodeBuilder(0, 0));
diff --git a/src/test/java/org/apache/commons/lang3/builder/JsonToStringStyleTest.java b/src/test/java/org/apache/commons/lang3/builder/JsonToStringStyleTest.java
index d11d6431e..a1b5bb7d0 100644
--- a/src/test/java/org/apache/commons/lang3/builder/JsonToStringStyleTest.java
+++ b/src/test/java/org/apache/commons/lang3/builder/JsonToStringStyleTest.java
@@ -50,8 +50,6 @@ public class JsonToStringStyleTest {
ToStringBuilder.setDefaultStyle(ToStringStyle.DEFAULT_STYLE);
}
- // ----------------------------------------------------------------
-
@Test
public void testNull() {
assertEquals("null", new ToStringBuilder(null).toString());
diff --git a/src/test/java/org/apache/commons/lang3/builder/MultiLineToStringStyleTest.java b/src/test/java/org/apache/commons/lang3/builder/MultiLineToStringStyleTest.java
index 54043f398..c4df156ec 100644
--- a/src/test/java/org/apache/commons/lang3/builder/MultiLineToStringStyleTest.java
+++ b/src/test/java/org/apache/commons/lang3/builder/MultiLineToStringStyleTest.java
@@ -44,8 +44,6 @@ public class MultiLineToStringStyleTest {
ToStringBuilder.setDefaultStyle(ToStringStyle.DEFAULT_STYLE);
}
- //----------------------------------------------------------------
-
@Test
public void testBlank() {
assertEquals(baseStr + "[" + System.lineSeparator() + "]", new ToStringBuilder(base).toString());
diff --git a/src/test/java/org/apache/commons/lang3/builder/NoClassNameToStringStyleTest.java b/src/test/java/org/apache/commons/lang3/builder/NoClassNameToStringStyleTest.java
index 25410f085..f2f173ad9 100644
--- a/src/test/java/org/apache/commons/lang3/builder/NoClassNameToStringStyleTest.java
+++ b/src/test/java/org/apache/commons/lang3/builder/NoClassNameToStringStyleTest.java
@@ -43,8 +43,6 @@ public class NoClassNameToStringStyleTest {
ToStringBuilder.setDefaultStyle(ToStringStyle.DEFAULT_STYLE);
}
- //----------------------------------------------------------------
-
@Test
public void testBlank() {
assertEquals("[]", new ToStringBuilder(base).toString());
diff --git a/src/test/java/org/apache/commons/lang3/builder/NoFieldNamesToStringStyleTest.java b/src/test/java/org/apache/commons/lang3/builder/NoFieldNamesToStringStyleTest.java
index e9058a1b8..aa6418ee4 100644
--- a/src/test/java/org/apache/commons/lang3/builder/NoFieldNamesToStringStyleTest.java
+++ b/src/test/java/org/apache/commons/lang3/builder/NoFieldNamesToStringStyleTest.java
@@ -44,8 +44,6 @@ public class NoFieldNamesToStringStyleTest {
ToStringBuilder.setDefaultStyle(ToStringStyle.DEFAULT_STYLE);
}
- //----------------------------------------------------------------
-
@Test
public void testBlank() {
assertEquals(baseStr + "[]", new ToStringBuilder(base).toString());
diff --git a/src/test/java/org/apache/commons/lang3/builder/RecursiveToStringStyleTest.java b/src/test/java/org/apache/commons/lang3/builder/RecursiveToStringStyleTest.java
index 96cf4f367..f87d5e25b 100644
--- a/src/test/java/org/apache/commons/lang3/builder/RecursiveToStringStyleTest.java
+++ b/src/test/java/org/apache/commons/lang3/builder/RecursiveToStringStyleTest.java
@@ -43,8 +43,6 @@ public class RecursiveToStringStyleTest {
ToStringBuilder.setDefaultStyle(ToStringStyle.DEFAULT_STYLE);
}
- //----------------------------------------------------------------
-
@Test
public void testBlank() {
assertEquals(baseStr + "[]", new ToStringBuilder(base).toString());
diff --git a/src/test/java/org/apache/commons/lang3/builder/ShortPrefixToStringStyleTest.java b/src/test/java/org/apache/commons/lang3/builder/ShortPrefixToStringStyleTest.java
index fb7a82dba..fdc7c2150 100644
--- a/src/test/java/org/apache/commons/lang3/builder/ShortPrefixToStringStyleTest.java
+++ b/src/test/java/org/apache/commons/lang3/builder/ShortPrefixToStringStyleTest.java
@@ -44,8 +44,6 @@ public class ShortPrefixToStringStyleTest {
ToStringBuilder.setDefaultStyle(ToStringStyle.DEFAULT_STYLE);
}
- //----------------------------------------------------------------
-
@Test
public void testBlank() {
assertEquals(baseStr + "[]", new ToStringBuilder(base).toString());
diff --git a/src/test/java/org/apache/commons/lang3/builder/SimpleToStringStyleTest.java b/src/test/java/org/apache/commons/lang3/builder/SimpleToStringStyleTest.java
index 08f912f59..56d0165c2 100644
--- a/src/test/java/org/apache/commons/lang3/builder/SimpleToStringStyleTest.java
+++ b/src/test/java/org/apache/commons/lang3/builder/SimpleToStringStyleTest.java
@@ -43,8 +43,6 @@ public class SimpleToStringStyleTest {
ToStringBuilder.setDefaultStyle(ToStringStyle.DEFAULT_STYLE);
}
- //----------------------------------------------------------------
-
@Test
public void testBlank() {
assertEquals("", new ToStringBuilder(base).toString());
diff --git a/src/test/java/org/apache/commons/lang3/builder/StandardToStringStyleTest.java b/src/test/java/org/apache/commons/lang3/builder/StandardToStringStyleTest.java
index 935fa9bde..1361ff5a5 100644
--- a/src/test/java/org/apache/commons/lang3/builder/StandardToStringStyleTest.java
+++ b/src/test/java/org/apache/commons/lang3/builder/StandardToStringStyleTest.java
@@ -61,8 +61,6 @@ public class StandardToStringStyleTest {
ToStringBuilder.setDefaultStyle(ToStringStyle.DEFAULT_STYLE);
}
- //----------------------------------------------------------------
-
@Test
public void testBlank() {
assertEquals(baseStr + "[]", new ToStringBuilder(base).toString());
diff --git a/src/test/java/org/apache/commons/lang3/math/FractionTest.java b/src/test/java/org/apache/commons/lang3/math/FractionTest.java
index a496ecf3c..af1e5b239 100644
--- a/src/test/java/org/apache/commons/lang3/math/FractionTest.java
+++ b/src/test/java/org/apache/commons/lang3/math/FractionTest.java
@@ -195,7 +195,6 @@ public class FractionTest {
}
- //--------------------------------------------------------------------------
@Test
public void testConstants() {
assertEquals(0, Fraction.ZERO.getNumerator());
diff --git a/src/test/java/org/apache/commons/lang3/math/NumberUtilsTest.java b/src/test/java/org/apache/commons/lang3/math/NumberUtilsTest.java
index 80d1dac82..33e61626a 100644
--- a/src/test/java/org/apache/commons/lang3/math/NumberUtilsTest.java
+++ b/src/test/java/org/apache/commons/lang3/math/NumberUtilsTest.java
@@ -45,8 +45,6 @@ public class NumberUtilsTest {
}
}
- // ---------------------------------------------------------------------
-
@Test
public void compareByte() {
assertTrue(NumberUtils.compare((byte) -3, (byte) 0) < 0);
@@ -337,7 +335,6 @@ public class NumberUtilsTest {
assertEquals(NumberUtils.FLOAT_MINUS_ONE.floatValue(), -1.0f);
}
- // -----------------------------------------------------------------------
@Test
public void testConstructor() {
assertNotNull(new NumberUtils());
@@ -1379,8 +1376,6 @@ public class NumberUtilsTest {
assertThrows(IllegalArgumentException.class, NumberUtils::min);
}
- // min/max tests
- // ----------------------------------------------------------------------
@Test
public void testMinLong_nullArray() {
assertThrows(NullPointerException.class, () -> NumberUtils.min((long[]) null));
diff --git a/src/test/java/org/apache/commons/lang3/mutable/MutableBooleanTest.java b/src/test/java/org/apache/commons/lang3/mutable/MutableBooleanTest.java
index 53ece8215..80592f556 100644
--- a/src/test/java/org/apache/commons/lang3/mutable/MutableBooleanTest.java
+++ b/src/test/java/org/apache/commons/lang3/mutable/MutableBooleanTest.java
@@ -55,7 +55,6 @@ public class MutableBooleanTest {
assertThrows(NullPointerException.class, () -> new MutableBoolean(null));
}
- // ----------------------------------------------------------------
@Test
public void testConstructors() {
assertFalse(new MutableBoolean().booleanValue());
diff --git a/src/test/java/org/apache/commons/lang3/mutable/MutableByteTest.java b/src/test/java/org/apache/commons/lang3/mutable/MutableByteTest.java
index fa94ee0e7..71a0887cc 100644
--- a/src/test/java/org/apache/commons/lang3/mutable/MutableByteTest.java
+++ b/src/test/java/org/apache/commons/lang3/mutable/MutableByteTest.java
@@ -83,7 +83,6 @@ public class MutableByteTest {
assertThrows(NullPointerException.class, () -> new MutableByte((Number) null));
}
- // ----------------------------------------------------------------
@Test
public void testConstructors() {
assertEquals((byte) 0, new MutableByte().byteValue());
diff --git a/src/test/java/org/apache/commons/lang3/mutable/MutableDoubleTest.java b/src/test/java/org/apache/commons/lang3/mutable/MutableDoubleTest.java
index cf5193374..78ef5813e 100644
--- a/src/test/java/org/apache/commons/lang3/mutable/MutableDoubleTest.java
+++ b/src/test/java/org/apache/commons/lang3/mutable/MutableDoubleTest.java
@@ -84,7 +84,6 @@ public class MutableDoubleTest {
assertThrows(NullPointerException.class, () -> new MutableDouble((Number) null));
}
- // ----------------------------------------------------------------
@Test
public void testConstructors() {
assertEquals(0d, new MutableDouble().doubleValue(), 0.0001d);
diff --git a/src/test/java/org/apache/commons/lang3/mutable/MutableFloatTest.java b/src/test/java/org/apache/commons/lang3/mutable/MutableFloatTest.java
index 753836767..f4218a9d3 100644
--- a/src/test/java/org/apache/commons/lang3/mutable/MutableFloatTest.java
+++ b/src/test/java/org/apache/commons/lang3/mutable/MutableFloatTest.java
@@ -84,7 +84,6 @@ public class MutableFloatTest {
assertThrows(NullPointerException.class, () -> new MutableFloat((Number) null));
}
- // ----------------------------------------------------------------
@Test
public void testConstructors() {
assertEquals(0f, new MutableFloat().floatValue(), 0.0001f);
diff --git a/src/test/java/org/apache/commons/lang3/mutable/MutableIntTest.java b/src/test/java/org/apache/commons/lang3/mutable/MutableIntTest.java
index 6892fa162..6ffe5c416 100644
--- a/src/test/java/org/apache/commons/lang3/mutable/MutableIntTest.java
+++ b/src/test/java/org/apache/commons/lang3/mutable/MutableIntTest.java
@@ -85,7 +85,6 @@ public class MutableIntTest {
assertThrows(NullPointerException.class, () -> new MutableInt((Number) null));
}
- // ----------------------------------------------------------------
@Test
public void testConstructors() {
assertEquals(0, new MutableInt().intValue());
diff --git a/src/test/java/org/apache/commons/lang3/mutable/MutableLongTest.java b/src/test/java/org/apache/commons/lang3/mutable/MutableLongTest.java
index e7dbe572c..195d8d49c 100644
--- a/src/test/java/org/apache/commons/lang3/mutable/MutableLongTest.java
+++ b/src/test/java/org/apache/commons/lang3/mutable/MutableLongTest.java
@@ -85,7 +85,6 @@ public class MutableLongTest {
assertThrows(NullPointerException.class, () -> new MutableLong((Number) null));
}
- // ----------------------------------------------------------------
@Test
public void testConstructors() {
assertEquals(0, new MutableLong().longValue());
diff --git a/src/test/java/org/apache/commons/lang3/mutable/MutableObjectTest.java b/src/test/java/org/apache/commons/lang3/mutable/MutableObjectTest.java
index 96b39f72e..63ba5b4a4 100644
--- a/src/test/java/org/apache/commons/lang3/mutable/MutableObjectTest.java
+++ b/src/test/java/org/apache/commons/lang3/mutable/MutableObjectTest.java
@@ -31,7 +31,6 @@ import org.junit.jupiter.api.Test;
*/
public class MutableObjectTest {
- // ----------------------------------------------------------------
@Test
public void testConstructors() {
assertNull(new MutableObject<String>().getValue());
diff --git a/src/test/java/org/apache/commons/lang3/mutable/MutableShortTest.java b/src/test/java/org/apache/commons/lang3/mutable/MutableShortTest.java
index c775931e3..63f67dd4a 100644
--- a/src/test/java/org/apache/commons/lang3/mutable/MutableShortTest.java
+++ b/src/test/java/org/apache/commons/lang3/mutable/MutableShortTest.java
@@ -73,7 +73,6 @@ public class MutableShortTest {
assertThrows(NullPointerException.class, () -> mutNum.compareTo(null));
}
- // ----------------------------------------------------------------
@Test
public void testConstructors() {
assertEquals((short) 0, new MutableShort().shortValue());
diff --git a/src/test/java/org/apache/commons/lang3/text/StrBuilderTest.java b/src/test/java/org/apache/commons/lang3/text/StrBuilderTest.java
index 5c454e884..829e3da92 100644
--- a/src/test/java/org/apache/commons/lang3/text/StrBuilderTest.java
+++ b/src/test/java/org/apache/commons/lang3/text/StrBuilderTest.java
@@ -572,7 +572,6 @@ public class StrBuilderTest {
assertEquals("", sb.toString());
}
- // -----------------------------------------------------------------------
@Test
public void testDeleteAll_String() {
StrBuilder sb = new StrBuilder("abcbccba");
@@ -625,7 +624,6 @@ public class StrBuilderTest {
assertEquals("", sb.toString());
}
- // -----------------------------------------------------------------------
@Test
public void testDeleteAll_StrMatcher() {
StrBuilder sb = new StrBuilder("A0xA1A2yA3");
@@ -660,7 +658,6 @@ public class StrBuilderTest {
assertEquals("", sb.toString());
}
- // -----------------------------------------------------------------------
@Test
public void testReplace_int_int_String() {
final StrBuilder sb = new StrBuilder("abc");
@@ -1146,7 +1143,6 @@ public class StrBuilderTest {
assertThrows(IndexOutOfBoundsException.class, () -> sb.substring(15, 20));
}
- // -----------------------------------------------------------------------
@Test
public void testMidString() {
final StrBuilder sb = new StrBuilder("hello goodbye hello");
@@ -1176,7 +1172,6 @@ public class StrBuilderTest {
assertEquals("left right", sb.leftString(15));
}
- // -----------------------------------------------------------------------
@Test
public void testContains_char() {
final StrBuilder sb = new StrBuilder("abcdefghijklmnopqrstuvwxyz");
@@ -1211,7 +1206,6 @@ public class StrBuilderTest {
assertTrue(sb.contains(A_NUMBER_MATCHER));
}
- // -----------------------------------------------------------------------
@Test
public void testIndexOf_char() {
final StrBuilder sb = new StrBuilder("abab");
@@ -1282,7 +1276,6 @@ public class StrBuilderTest {
assertEquals(-1, sb.lastIndexOf('z', 1));
}
- // -----------------------------------------------------------------------
@Test
public void testIndexOf_String() {
final StrBuilder sb = new StrBuilder("abab");
@@ -1403,7 +1396,6 @@ public class StrBuilderTest {
assertEquals(-1, sb.lastIndexOf((String) null, 2));
}
- // -----------------------------------------------------------------------
@Test
public void testIndexOf_StrMatcher() {
final StrBuilder sb = new StrBuilder();
@@ -1572,7 +1564,6 @@ public class StrBuilderTest {
assertEquals("a b c d ", t.getContent());
}
- // -----------------------------------------------------------------------
@Test
public void testAsReader() throws Exception {
final StrBuilder sb = new StrBuilder("some text");
diff --git a/src/test/java/org/apache/commons/lang3/text/StrTokenizerTest.java b/src/test/java/org/apache/commons/lang3/text/StrTokenizerTest.java
index 615a4b915..c2066fe37 100644
--- a/src/test/java/org/apache/commons/lang3/text/StrTokenizerTest.java
+++ b/src/test/java/org/apache/commons/lang3/text/StrTokenizerTest.java
@@ -47,7 +47,6 @@ public class StrTokenizerTest {
assertNotSame(StrTokenizer.getTSVInstance(), tokenizer);
}
- // -----------------------------------------------------------------------
@Test
public void test1() {
@@ -616,7 +615,6 @@ public class StrTokenizerTest {
assertEquals("a", clonedTokenizer.nextToken());
}
- // -----------------------------------------------------------------------
@Test
public void testConstructor_String() {
StrTokenizer tok = new StrTokenizer("a b");
diff --git a/src/test/java/org/apache/commons/lang3/text/WordUtilsTest.java b/src/test/java/org/apache/commons/lang3/text/WordUtilsTest.java
index 3156b9db5..8177d419c 100644
--- a/src/test/java/org/apache/commons/lang3/text/WordUtilsTest.java
+++ b/src/test/java/org/apache/commons/lang3/text/WordUtilsTest.java
@@ -311,7 +311,6 @@ public class WordUtilsTest {
assertEquals("iah1", WordUtils.initials("i am here 123"));
}
- // -----------------------------------------------------------------------
@Test
public void testInitials_String_charArray() {
char[] array = null;
@@ -396,7 +395,6 @@ public class WordUtilsTest {
assertEquals("i2", WordUtils.initials("i am here 123", array));
}
- // -----------------------------------------------------------------------
@Test
public void testSwapCase_String() {
assertNull(WordUtils.swapCase(null));
diff --git a/src/test/java/org/apache/commons/lang3/time/DateUtilsTest.java b/src/test/java/org/apache/commons/lang3/time/DateUtilsTest.java
index 1d5127f19..f57bf0006 100644
--- a/src/test/java/org/apache/commons/lang3/time/DateUtilsTest.java
+++ b/src/test/java/org/apache/commons/lang3/time/DateUtilsTest.java
@@ -1188,7 +1188,6 @@ public class DateUtilsTest {
"Hour Round Up Failed");
}
- // -----------------------------------------------------------------------
@Test
public void testSetDays() throws Exception {
Date result = DateUtils.setDays(BASE_DATE, 1);
@@ -1214,7 +1213,6 @@ public class DateUtilsTest {
assertThrows(NullPointerException.class, () -> DateUtils.setDays(null, 1));
}
- // -----------------------------------------------------------------------
@Test
public void testSetHours() throws Exception {
Date result = DateUtils.setHours(BASE_DATE, 0);
@@ -1240,7 +1238,6 @@ public class DateUtilsTest {
assertThrows(NullPointerException.class, () -> DateUtils.setHours(null, 0));
}
- // -----------------------------------------------------------------------
@Test
public void testSetMilliseconds() throws Exception {
Date result = DateUtils.setMilliseconds(BASE_DATE, 0);
@@ -1266,7 +1263,6 @@ public class DateUtilsTest {
assertThrows(NullPointerException.class, () -> DateUtils.setMilliseconds(null, 0));
}
- // -----------------------------------------------------------------------
@Test
public void testSetMinutes() throws Exception {
Date result = DateUtils.setMinutes(BASE_DATE, 0);
@@ -1292,7 +1288,6 @@ public class DateUtilsTest {
assertThrows(NullPointerException.class, () -> DateUtils.setMinutes(null, 0));
}
- // -----------------------------------------------------------------------
@Test
public void testSetMonths() throws Exception {
Date result = DateUtils.setMonths(BASE_DATE, 5);
@@ -1323,7 +1318,6 @@ public class DateUtilsTest {
assertThrows(NullPointerException.class, () -> DateUtils.setMonths(null, 0));
}
- // -----------------------------------------------------------------------
@Test
public void testSetSeconds() throws Exception {
Date result = DateUtils.setSeconds(BASE_DATE, 0);
@@ -1349,7 +1343,6 @@ public class DateUtilsTest {
assertThrows(NullPointerException.class, () -> DateUtils.setSeconds(null, 0));
}
- // -----------------------------------------------------------------------
@Test
public void testSetYears() throws Exception {
Date result = DateUtils.setYears(BASE_DATE, 2000);
diff --git a/src/test/java/org/apache/commons/lang3/time/DurationFormatUtilsTest.java b/src/test/java/org/apache/commons/lang3/time/DurationFormatUtilsTest.java
index fc6c2f039..5d4ab68f4 100644
--- a/src/test/java/org/apache/commons/lang3/time/DurationFormatUtilsTest.java
+++ b/src/test/java/org/apache/commons/lang3/time/DurationFormatUtilsTest.java
@@ -83,7 +83,6 @@ public class DurationFormatUtilsTest {
new int[] { 2006, 1, 26, 10, 47, 34 }, "yyyy/MM/dd HH:mm:ss SSS");
}
- // -----------------------------------------------------------------------
@Test
public void testConstructor() {
assertNotNull(new DurationFormatUtils());
@@ -322,7 +321,6 @@ public class DurationFormatUtilsTest {
assertEquals("1 day 1 hour 1 minute 1 second", text);
}
- // -----------------------------------------------------------------------
@Test
public void testFormatDurationWords() {
String text;