Fix Checkstyle
[INFO] There are 4 errors reported by Checkstyle 10.12.4 with src/site/resources/checkstyle/checkstyle.xml ruleset. [ERROR] src\main\java\org\apache\commons\lang3\StringUtils.java:[1869,92] (whitespace) WhitespaceAfter: '...' is not followed by whitespace. [ERROR] src\main\java\org\apache\commons\lang3\time\FastDatePrinter.java:[1454,13] (whitespace) WhitespaceAfter: 'switch' is not followed by whitespace. [ERROR] src\test\java\org\apache\commons\lang3\time\FastDateFormatTest.java:[285,17] (whitespace) WhitespaceAfter: 'synchronized' is not followed by whitespace. [ERROR] src\test\java\org\apache\commons\lang3\time\FastDateFormatTest.java:[292,17] (whitespace) WhitespaceAfter: 'synchronized' is not followed by whitespace.
This commit is contained in:
parent
8b5ce4070f
commit
d4ebf9abcc
|
@ -70,7 +70,7 @@ The <action> type attribute can be add,update,fix,remove.
|
||||||
<action type="add" dev="ggregory" due-to="Gary Gregory">Add LocaleUtils.isLanguageUndetermined(Locale).</action>
|
<action type="add" dev="ggregory" due-to="Gary Gregory">Add LocaleUtils.isLanguageUndetermined(Locale).</action>
|
||||||
<action type="add" dev="ggregory" due-to="Gary Gregory">Add Add ObjectUtils.toString(Supplier<Object>, Supplier<String>).</action>
|
<action type="add" dev="ggregory" due-to="Gary Gregory">Add Add ObjectUtils.toString(Supplier<Object>, Supplier<String>).</action>
|
||||||
<!-- UPDATE -->
|
<!-- UPDATE -->
|
||||||
<action type="update" dev="ggregory" due-to="Gary Gregory">Bump commons-parent from 58 to 62.</action>
|
<action type="update" dev="ggregory" due-to="Gary Gregory">Bump commons-parent from 58 to 64.</action>
|
||||||
<action type="update" dev="ggregory" due-to="Gary Gregory">Bump org.easymock:easymock from 5.1.0 to 5.2.0 #1104.</action>
|
<action type="update" dev="ggregory" due-to="Gary Gregory">Bump org.easymock:easymock from 5.1.0 to 5.2.0 #1104.</action>
|
||||||
</release>
|
</release>
|
||||||
<release version="3.13.0" date="2023-07-23" description="New features and bug fixes (Java 8).">
|
<release version="3.13.0" date="2023-07-23" description="New features and bug fixes (Java 8).">
|
||||||
|
|
|
@ -1866,7 +1866,7 @@ public class StringUtils {
|
||||||
* {@code false} if {@code searchStrings} is null or contains no matches.
|
* {@code false} if {@code searchStrings} is null or contains no matches.
|
||||||
* @since 3.5
|
* @since 3.5
|
||||||
*/
|
*/
|
||||||
public static boolean equalsAnyIgnoreCase(final CharSequence string, final CharSequence...searchStrings) {
|
public static boolean equalsAnyIgnoreCase(final CharSequence string, final CharSequence... searchStrings) {
|
||||||
if (ArrayUtils.isNotEmpty(searchStrings)) {
|
if (ArrayUtils.isNotEmpty(searchStrings)) {
|
||||||
for (final CharSequence next : searchStrings) {
|
for (final CharSequence next : searchStrings) {
|
||||||
if (equalsIgnoreCase(string, next)) {
|
if (equalsIgnoreCase(string, next)) {
|
||||||
|
|
|
@ -1451,7 +1451,7 @@ public class FastDatePrinter implements DatePrinter, Serializable {
|
||||||
* rule exists, an IllegalArgumentException will be thrown.
|
* rule exists, an IllegalArgumentException will be thrown.
|
||||||
*/
|
*/
|
||||||
static Iso8601_Rule getRule(final int tokenLen) {
|
static Iso8601_Rule getRule(final int tokenLen) {
|
||||||
switch(tokenLen) {
|
switch (tokenLen) {
|
||||||
case 1:
|
case 1:
|
||||||
return ISO8601_HOURS;
|
return ISO8601_HOURS;
|
||||||
case 2:
|
case 2:
|
||||||
|
|
|
@ -282,14 +282,14 @@ public class FastDateFormatTest extends AbstractLangTest {
|
||||||
public StringBuffer format(final Object obj,
|
public StringBuffer format(final Object obj,
|
||||||
final StringBuffer toAppendTo,
|
final StringBuffer toAppendTo,
|
||||||
final FieldPosition fieldPosition) {
|
final FieldPosition fieldPosition) {
|
||||||
synchronized(this) {
|
synchronized (this) {
|
||||||
return inner.format(obj, toAppendTo, fieldPosition);
|
return inner.format(obj, toAppendTo, fieldPosition);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Object parseObject(final String source, final ParsePosition pos) {
|
public Object parseObject(final String source, final ParsePosition pos) {
|
||||||
synchronized(this) {
|
synchronized (this) {
|
||||||
return inner.parseObject(source, pos);
|
return inner.parseObject(source, pos);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue