[core] Unify javadoc for InternalApiBridge classes

Refs #4348
This commit is contained in:
Andreas Dangel
2024-02-01 12:09:12 +01:00
parent 83879dc420
commit fae522a002
12 changed files with 107 additions and 38 deletions

View File

@@ -8,14 +8,19 @@ import net.sourceforge.pmd.annotation.InternalApi;
import net.sourceforge.pmd.lang.vf.DataType;
/**
* This is internal API, and can be changed at any time.
* Internal API.
*
* <p>Acts as a bridge between outer parts of PMD and the restricted access
* internal API of this package.
*
* <p><b>None of this is published API, and compatibility can be broken anytime!</b>
* Use this only at your own risk.
*
* @apiNote Internal API
*/
@InternalApi
public final class InternalApiBridge {
private InternalApiBridge() {
// utility class
}
private InternalApiBridge() {}
public static void setDataType(VfTypedNode node, DataType dataType) {
((AbstractVFDataNode) node).setDataType(dataType);