This commit is contained in:
Clément Fournier
2022-03-07 19:59:50 +01:00
parent dee330293f
commit 3b8d7a32a7
8 changed files with 119 additions and 104 deletions

View File

@ -4,6 +4,7 @@
package net.sourceforge.pmd.cpd;
import java.io.IOException;
import java.io.Reader;
import java.util.regex.Pattern;
@ -31,7 +32,7 @@ public class PythonTokenizer extends JavaCCTokenizer {
}
@Override
protected CharStream makeCharStream(Reader sourceCode) {
protected CharStream makeCharStream(Reader sourceCode) throws IOException {
return CharStreamFactory.simpleCharStream(sourceCode, PythonTokenDocument::new);
}