[visualforce] Cleanup InternalApi methods

Refs #4348
This commit is contained in:
Andreas Dangel 2024-02-01 10:39:18 +01:00
parent d1c3212ea7
commit 5e9ba14681
No known key found for this signature in database
GPG Key ID: 93450DF2DF9A3FA3
3 changed files with 3 additions and 6 deletions

View File

@ -11,9 +11,9 @@ import net.sourceforge.pmd.lang.vf.DataType;
* This is internal API, and can be changed at any time.
*/
@InternalApi
public final class VfAstInternals {
public final class InternalApiBridge {
private VfAstInternals() {
private InternalApiBridge() {
// utility class
}

View File

@ -9,8 +9,6 @@ import java.util.List;
import org.apache.commons.lang3.StringUtils;
import net.sourceforge.pmd.annotation.InternalApi;
/**
* Utility class to keep track of unclosed tags. The mechanism is rather simple.
* If a end tag (</x>) is encountered, it will iterate through the open
@ -21,7 +19,6 @@ import net.sourceforge.pmd.annotation.InternalApi;
* @author Victor Bucutea
*
*/
@InternalApi
class OpenTagRegister {
private List<ASTElement> tagList = new ArrayList<>();

View File

@ -145,7 +145,7 @@ class VfExpressionTypeVisitor extends VfVisitorBase<Void, Void> {
}
if (type != null) {
VfAstInternals.setDataType(entry.getKey(), type);
InternalApiBridge.setDataType(entry.getKey(), type);
} else {
LOG.debug("Unable to determine type for: {}", name);
}