[vf] Make remaining setters package-private, remove deprecated

This commit is contained in:
Andreas Dangel
2020-03-19 15:24:06 +01:00
parent 3b5c08a095
commit ff39a5503a
8 changed files with 9 additions and 48 deletions

View File

@ -4,12 +4,8 @@
package net.sourceforge.pmd.lang.vf.ast;
import net.sourceforge.pmd.annotation.InternalApi;
public final class ASTArguments extends AbstractVfNode {
@Deprecated
@InternalApi
ASTArguments(int id) {
super(id);
}

View File

@ -4,8 +4,6 @@
package net.sourceforge.pmd.lang.vf.ast;
import net.sourceforge.pmd.annotation.InternalApi;
public final class ASTAttribute extends AbstractVfNode {
private String name;
@ -19,9 +17,7 @@ public final class ASTAttribute extends AbstractVfNode {
return name;
}
@Deprecated
@InternalApi
public void setName(String name) {
void setName(String name) {
this.name = name;
}

View File

@ -4,8 +4,6 @@
package net.sourceforge.pmd.lang.vf.ast;
import net.sourceforge.pmd.annotation.InternalApi;
public final class ASTDeclaration extends AbstractVfNode {
private String name;
@ -18,9 +16,7 @@ public final class ASTDeclaration extends AbstractVfNode {
return name;
}
@Deprecated
@InternalApi
public void setName(String name) {
void setName(String name) {
this.name = name;
}

View File

@ -4,8 +4,6 @@
package net.sourceforge.pmd.lang.vf.ast;
import net.sourceforge.pmd.annotation.InternalApi;
public final class ASTDoctypeDeclaration extends AbstractVfNode {
/**
@ -21,9 +19,7 @@ public final class ASTDoctypeDeclaration extends AbstractVfNode {
return name;
}
@Deprecated
@InternalApi
public void setName(String name) {
void setName(String name) {
this.name = name;
}

View File

@ -4,8 +4,6 @@
package net.sourceforge.pmd.lang.vf.ast;
import net.sourceforge.pmd.annotation.InternalApi;
public final class ASTDoctypeExternalId extends AbstractVfNode {
/**
@ -30,9 +28,7 @@ public final class ASTDoctypeExternalId extends AbstractVfNode {
return uri;
}
@Deprecated
@InternalApi
public void setUri(String uri) {
void setUri(String uri) {
this.uri = uri;
}
@ -44,9 +40,7 @@ public final class ASTDoctypeExternalId extends AbstractVfNode {
return null == publicId ? "" : publicId;
}
@Deprecated
@InternalApi
public void setPublicId(String publicId) {
void setPublicId(String publicId) {
this.publicId = publicId;
}

View File

@ -4,8 +4,6 @@
package net.sourceforge.pmd.lang.vf.ast;
import net.sourceforge.pmd.annotation.InternalApi;
public final class ASTElement extends AbstractVfNode {
/**
@ -59,9 +57,7 @@ public final class ASTElement extends AbstractVfNode {
return name;
}
@Deprecated
@InternalApi
public void setName(String name) {
void setName(String name) {
this.name = name;
}
@ -73,15 +69,11 @@ public final class ASTElement extends AbstractVfNode {
return unclosed;
}
@Deprecated
@InternalApi
public void setUnclosed(boolean unclosed) {
void setUnclosed(boolean unclosed) {
this.unclosed = unclosed;
}
@Deprecated
@InternalApi
public void setEmpty(boolean empty) {
void setEmpty(boolean empty) {
this.empty = empty;
}

View File

@ -20,9 +20,8 @@ import net.sourceforge.pmd.util.StringUtil;
* @author Victor Bucutea
*
*/
@Deprecated
@InternalApi
public class OpenTagRegister {
class OpenTagRegister {
private List<ASTElement> tagList = new ArrayList<>();

View File

@ -2,25 +2,17 @@
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.ast;
import java.io.Reader;
import net.sourceforge.pmd.annotation.InternalApi;
import net.sourceforge.pmd.lang.LanguageVersionHandler;
import net.sourceforge.pmd.lang.Parser;
import net.sourceforge.pmd.lang.ParserOptions;
import net.sourceforge.pmd.lang.TokenManager;
import net.sourceforge.pmd.lang.ast.impl.javacc.CharStreamFactory;
/**
* VF Token Manager implementation.
*
* @deprecated This is internal API, use {@link Parser#getTokenManager(String, Reader)} via
* {@link LanguageVersionHandler#getParser(ParserOptions)}.
*/
@Deprecated
@InternalApi
public class VfTokenManager implements TokenManager {
private final VfParserImplTokenManager tokenManager;