Deprecate AbstractJavaParser
Internalize JavaLanguageParser
This commit is contained in:
@ -23,7 +23,10 @@ import net.sourceforge.pmd.lang.java.ast.ParseException;
|
||||
*
|
||||
* @see AbstractParser
|
||||
* @see JavaParser
|
||||
*
|
||||
* @deprecated For removal, the abstraction is not useful.
|
||||
*/
|
||||
@Deprecated
|
||||
public abstract class AbstractJavaParser extends AbstractParser {
|
||||
private JavaParser parser;
|
||||
|
||||
|
@ -6,6 +6,8 @@ package net.sourceforge.pmd.lang.java;
|
||||
|
||||
import java.io.Reader;
|
||||
|
||||
import net.sourceforge.pmd.annotation.InternalApi;
|
||||
import net.sourceforge.pmd.lang.LanguageVersionHandler;
|
||||
import net.sourceforge.pmd.lang.ParserOptions;
|
||||
import net.sourceforge.pmd.lang.java.ast.JavaParser;
|
||||
import net.sourceforge.pmd.lang.java.ast.ParseException;
|
||||
@ -15,7 +17,11 @@ import net.sourceforge.pmd.lang.java.ast.ParseException;
|
||||
*
|
||||
* @author Pieter_Van_Raemdonck - Application Engineers NV/SA - www.ae.be
|
||||
* @author Andreas Dangel
|
||||
*
|
||||
* @deprecated This is internal API, use {@link LanguageVersionHandler#getParser(ParserOptions)}.
|
||||
*/
|
||||
@InternalApi
|
||||
@Deprecated
|
||||
public class JavaLanguageParser extends AbstractJavaParser {
|
||||
private final int jdkVersion;
|
||||
private final boolean preview;
|
||||
|
Reference in New Issue
Block a user