We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 756f0d3 commit aa5021bCopy full SHA for aa5021b
1 file changed
src/test/java/org/apache/commons/codec/StringEncoderComparatorTest.java
@@ -22,6 +22,7 @@
22
23
import org.apache.commons.codec.language.DoubleMetaphone;
24
import org.apache.commons.codec.language.Soundex;
25
+import org.apache.commons.lang3.ArrayUtils;
26
import org.junit.jupiter.api.Test;
27
28
import static org.junit.jupiter.api.Assertions.assertEquals;
@@ -52,7 +53,7 @@ public void testComparatorWithDoubleMetaphone() throws Exception {
52
53
54
testList.sort(sCompare); // unchecked
55
- final String[] resultArray = testList.toArray(new String[0]);
56
+ final String[] resultArray = testList.toArray(ArrayUtils.EMPTY_STRING_ARRAY);
57
58
for (int i = 0; i < resultArray.length; i++) {
59
assertEquals(controlArray[i], resultArray[i],
0 commit comments