Fix checkstyle
This commit is contained in:
parent
3aea3cfe29
commit
2e8056dc28
@ -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,9 +13,9 @@ 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
|
||||
public void testEscapedBackSlash() throws IOException {
|
||||
// See https://github.com/pmd/pmd/issues/1751
|
||||
|
Loading…
x
Reference in New Issue
Block a user