mirror of
https://github.com/apache/commons-lang.git
synced 2025-02-08 11:05:09 +00:00
Reuse constant
Format tweak
This commit is contained in:
parent
5cf676b5b9
commit
341b578b4f
@ -166,7 +166,7 @@ private void init() {
|
|||||||
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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
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 void propertyChange(final PropertyChangeEvent evt) {
|
|||||||
* @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]));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user