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:
Gary Gregory 2023-10-10 15:39:05 -04:00
parent 8b5ce4070f
commit d4ebf9abcc
4 changed files with 5 additions and 5 deletions

View File

@ -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 Add ObjectUtils.toString(Supplier&lt;Object&gt;, Supplier&lt;String&gt;).</action>
<!-- 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>
</release>
<release version="3.13.0" date="2023-07-23" description="New features and bug fixes (Java 8).">

View File

@ -1866,7 +1866,7 @@ public class StringUtils {
* {@code false} if {@code searchStrings} is null or contains no matches.
* @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)) {
for (final CharSequence next : searchStrings) {
if (equalsIgnoreCase(string, next)) {

View File

@ -1451,7 +1451,7 @@ public class FastDatePrinter implements DatePrinter, Serializable {
* rule exists, an IllegalArgumentException will be thrown.
*/
static Iso8601_Rule getRule(final int tokenLen) {
switch(tokenLen) {
switch (tokenLen) {
case 1:
return ISO8601_HOURS;
case 2:

View File

@ -282,14 +282,14 @@ public class FastDateFormatTest extends AbstractLangTest {
public StringBuffer format(final Object obj,
final StringBuffer toAppendTo,
final FieldPosition fieldPosition) {
synchronized(this) {
synchronized (this) {
return inner.format(obj, toAppendTo, fieldPosition);
}
}
@Override
public Object parseObject(final String source, final ParsePosition pos) {
synchronized(this) {
synchronized (this) {
return inner.parseObject(source, pos);
}
}