Skip to content

Commit

Permalink
Remove usage of org.apache.commons.lang.StringUtils (#9110)
Browse files Browse the repository at this point in the history
  • Loading branch information
basil authored Apr 2, 2024
1 parent 065cff5 commit 978309a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/src/test/java/hudson/util/TextFileTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import java.nio.charset.Charset;
import java.nio.file.Files;
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang.StringUtils;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TemporaryFolder;
Expand Down Expand Up @@ -80,7 +79,7 @@ public void tailShiftJIS() throws Exception {
}

String tail = t.fastTail(35, Charset.forName("Shift_JIS"));
assertEquals(StringUtils.repeat("\u30e2", 34) + "\n", tail);
assertEquals("\u30e2".repeat(34) + "\n", tail);
assertEquals(35, tail.length());

// add one more byte to force fastTail to read from one byte ahead
Expand All @@ -91,7 +90,7 @@ public void tailShiftJIS() throws Exception {
}

tail = t.fastTail(35, Charset.forName("Shift_JIS"));
assertEquals(StringUtils.repeat("\u30e2", 33) + "\n\n", tail);
assertEquals("\u30e2".repeat(33) + "\n\n", tail);
assertEquals(35, tail.length());
}

Expand Down

0 comments on commit 978309a

Please sign in to comment.