parent
5cf676b5b9
commit
341b578b4f
|
@ -166,7 +166,7 @@ public class FastDatePrinter implements DatePrinter, Serializable {
|
|||
rules = rulesList.toArray(EMPTY_RULE_ARRAY);
|
||||
|
||||
int len = 0;
|
||||
for (int i=rules.length; --i >= 0; ) {
|
||||
for (int i = rules.length; --i >= 0;) {
|
||||
len += rules[i].estimateLength();
|
||||
}
|
||||
|
||||
|
|
|
@ -30,6 +30,7 @@ import java.util.concurrent.CountDownLatch;
|
|||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import org.apache.commons.lang3.AbstractLangTest;
|
||||
import org.apache.commons.lang3.ArrayUtils;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
/**
|
||||
|
@ -407,8 +408,7 @@ public class EventCountCircuitBreakerTest extends AbstractLangTest {
|
|||
* @param values the expected values
|
||||
*/
|
||||
public void verify(final Boolean... values) {
|
||||
assertArrayEquals(values,
|
||||
changedValues.toArray(new Boolean[0]));
|
||||
assertArrayEquals(values, changedValues.toArray(ArrayUtils.EMPTY_BOOLEAN_OBJECT_ARRAY));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue