PR Review

This commit is contained in:
Tomi De Lucca
2018-08-19 03:56:07 -03:00
parent 1812880c47
commit 1796d2a7a5
2 changed files with 10 additions and 14 deletions

View File

@ -5,13 +5,17 @@
package net.sourceforge.pmd.cpd;
import net.sourceforge.pmd.lang.swift.antlr4.SwiftLexer;
import org.antlr.v4.runtime.CharStream;
import org.antlr.v4.runtime.Lexer;
/**
* SwiftTokenizer
*/
public class SwiftTokenizer extends AntlrTokenizer {
public SwiftTokenizer() {
super(new SwiftLexer(null));
@Override
protected Lexer getLexerForSource(final CharStream charStream) {
return new SwiftLexer(charStream);
}
}