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;
|
package net.sourceforge.pmd.cpd;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import java.nio.charset.StandardCharsets;
|
||||||
|
|
||||||
import org.apache.commons.io.IOUtils;
|
import org.apache.commons.io.IOUtils;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
@ -9,9 +13,9 @@ import org.junit.Test;
|
|||||||
public class EdgeCasesTokenizerTest {
|
public class EdgeCasesTokenizerTest {
|
||||||
|
|
||||||
private String getSampleCode(final String filename) throws IOException {
|
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
|
@Test
|
||||||
public void testEscapedBackSlash() throws IOException {
|
public void testEscapedBackSlash() throws IOException {
|
||||||
// See https://github.com/pmd/pmd/issues/1751
|
// See https://github.com/pmd/pmd/issues/1751
|
||||||
|
Reference in New Issue
Block a user