Forgotten charset.
@@ -35,6 +35,7 @@ import hudson.tasks.BuildStepDescriptor;
import hudson.tasks.Builder;
import java.io.IOException;
import java.io.InputStream;
+import java.nio.charset.StandardCharsets;
import java.util.List;
import java.util.TreeSet;
import java.util.logging.Level;
@@ -67,7 +68,7 @@ public class ClassFilterImplTest {
@Test
public void whitelistSanity() throws Exception {
try (InputStream is = ClassFilterImpl.class.getResourceAsStream("whitelisted-classes.txt")) {
- List<String> lines = IOUtils.readLines(is);
+ List<String> lines = IOUtils.readLines(is, StandardCharsets.UTF_8);
assertThat("whitelist is ordered", new TreeSet<>(lines), contains(lines.toArray(new String[0])));
for (String line : lines) {
try {
