Reuse constant

Format tweak
This commit is contained in:
Gary Gregory 2022-10-03 09:46:58 -04:00
parent 5cf676b5b9
commit 341b578b4f
2 changed files with 3 additions and 3 deletions

View File

@ -166,7 +166,7 @@ public class FastDatePrinter implements DatePrinter, Serializable {
rules = rulesList.toArray(EMPTY_RULE_ARRAY); rules = rulesList.toArray(EMPTY_RULE_ARRAY);
int len = 0; int len = 0;
for (int i=rules.length; --i >= 0; ) { for (int i = rules.length; --i >= 0;) {
len += rules[i].estimateLength(); len += rules[i].estimateLength();
} }

View File

@ -30,6 +30,7 @@ import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
import org.apache.commons.lang3.AbstractLangTest; import org.apache.commons.lang3.AbstractLangTest;
import org.apache.commons.lang3.ArrayUtils;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
/** /**
@ -407,8 +408,7 @@ public class EventCountCircuitBreakerTest extends AbstractLangTest {
* @param values the expected values * @param values the expected values
*/ */
public void verify(final Boolean... values) { public void verify(final Boolean... values) {
assertArrayEquals(values, assertArrayEquals(values, changedValues.toArray(ArrayUtils.EMPTY_BOOLEAN_OBJECT_ARRAY));
changedValues.toArray(new Boolean[0]));
} }
} }
} }