Merge branch 'master' into pmd/7.0.x

This commit is contained in:
Andreas Dangel
2020-03-13 10:36:11 +01:00
2 changed files with 10 additions and 1 deletions

View File

@ -32,6 +32,7 @@ You can identify them with the `@InternalApi` annotation. You'll also get a depr
* {% jdoc vm::lang.vm.VmTokenManager %}
* {% jdoc java::lang.java.JavaTokenManager %}
* {% jdoc python::lang.python.PythonTokenManager %}
### External Contributions

View File

@ -1,4 +1,4 @@
/**
/*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
@ -6,13 +6,21 @@ package net.sourceforge.pmd.lang.python;
import java.io.Reader;
import net.sourceforge.pmd.annotation.InternalApi;
import net.sourceforge.pmd.cpd.Language;
import net.sourceforge.pmd.cpd.Tokenizer;
import net.sourceforge.pmd.lang.TokenManager;
import net.sourceforge.pmd.lang.ast.impl.javacc.CharStreamFactory;
import net.sourceforge.pmd.lang.python.ast.PythonParserTokenManager;
/**
* Python Token Manager implementation.
*
* @deprecated This is internal API, use {@link Tokenizer#tokenize(net.sourceforge.pmd.cpd.SourceCode, net.sourceforge.pmd.cpd.Tokens)}
* via {@link Language#getTokenizer()}.
*/
@Deprecated
@InternalApi
public class PythonTokenManager implements TokenManager {
private final PythonParserTokenManager tokenManager;