forked from phoedos/pmd
Fix checkstyle
This commit is contained in:
@ -1,7 +1,11 @@
|
||||
/**
|
||||
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
|
||||
*/
|
||||
|
||||
package net.sourceforge.pmd.cpd;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
|
||||
import org.apache.commons.io.IOUtils;
|
||||
import org.junit.Test;
|
||||
@ -9,7 +13,7 @@ import org.junit.Test;
|
||||
public class EdgeCasesTokenizerTest {
|
||||
|
||||
private String getSampleCode(final String filename) throws IOException {
|
||||
return IOUtils.toString(GoTokenizer.class.getResourceAsStream(filename));
|
||||
return IOUtils.toString(GoTokenizer.class.getResourceAsStream(filename), StandardCharsets.UTF_8);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Reference in New Issue
Block a user