[java] Remove Experimental for TextBlocks, Update javadoc for Java15 Preview
This commit is contained in:
@ -12,7 +12,6 @@ import java.util.regex.Pattern;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
import net.sourceforge.pmd.annotation.Experimental;
|
||||
import net.sourceforge.pmd.annotation.InternalApi;
|
||||
|
||||
public class ASTLiteral extends AbstractJavaTypeNode {
|
||||
@ -265,10 +264,7 @@ public class ASTLiteral extends AbstractJavaTypeNode {
|
||||
* Returns the content of the text block after normalizing line endings to LF,
|
||||
* removing incidental white space surrounding the text block and interpreting
|
||||
* escape sequences.
|
||||
*
|
||||
* <p>Note: This is a Java 14 Preview Feature.
|
||||
*/
|
||||
@Experimental
|
||||
public String getTextBlockContent() {
|
||||
if (!isTextBlock()) {
|
||||
return getImage();
|
||||
|
@ -8,7 +8,7 @@ import net.sourceforge.pmd.annotation.Experimental;
|
||||
|
||||
/**
|
||||
* A pattern (for pattern matching constructs like {@link ASTInstanceOfExpression InstanceOfExpression}).
|
||||
* This is a JDK 14 preview feature and is subject to change.
|
||||
* This is a JDK 14 and JDK 15 preview feature and is subject to change.
|
||||
*
|
||||
* <p>This interface will be implemented by all forms of patterns. For
|
||||
* now, only type test patterns are supported. Record deconstruction
|
||||
|
@ -8,7 +8,7 @@ package net.sourceforge.pmd.lang.java.ast;
|
||||
import net.sourceforge.pmd.annotation.Experimental;
|
||||
|
||||
/**
|
||||
* Defines the body of a {@linkplain ASTRecordDeclaration RecordDeclaration} (JDK 14 preview feature).
|
||||
* Defines the body of a {@linkplain ASTRecordDeclaration RecordDeclaration} (JDK 14 and JDK 15 preview feature).
|
||||
* This can contain additional methods and or constructors.
|
||||
*
|
||||
* <pre class="grammar">
|
||||
|
@ -8,7 +8,7 @@ package net.sourceforge.pmd.lang.java.ast;
|
||||
import net.sourceforge.pmd.annotation.Experimental;
|
||||
|
||||
/**
|
||||
* Defines a single component of a {@linkplain ASTRecordDeclaration RecordDeclaration} (JDK 14 preview feature).
|
||||
* Defines a single component of a {@linkplain ASTRecordDeclaration RecordDeclaration} (JDK 14 and JDK 15 preview feature).
|
||||
*
|
||||
* <pre class="grammar">
|
||||
*
|
||||
|
@ -10,7 +10,7 @@ import java.util.Iterator;
|
||||
import net.sourceforge.pmd.annotation.Experimental;
|
||||
|
||||
/**
|
||||
* Defines the state description of a {@linkplain ASTRecordDeclaration RecordDeclaration} (JDK 14 preview feature).
|
||||
* Defines the state description of a {@linkplain ASTRecordDeclaration RecordDeclaration} (JDK 14 and JDK 15 preview feature).
|
||||
*
|
||||
* <pre class="grammar">
|
||||
*
|
||||
|
@ -8,7 +8,7 @@ package net.sourceforge.pmd.lang.java.ast;
|
||||
import net.sourceforge.pmd.annotation.Experimental;
|
||||
|
||||
/**
|
||||
* This defines a compact constructor for a {@linkplain ASTRecordDeclaration RecordDeclaration} (JDK 14 preview feature).
|
||||
* This defines a compact constructor for a {@linkplain ASTRecordDeclaration RecordDeclaration} (JDK 14 and JDK 15 preview feature).
|
||||
*
|
||||
* <pre class="grammar">
|
||||
*
|
||||
|
@ -11,7 +11,7 @@ import net.sourceforge.pmd.annotation.Experimental;
|
||||
import net.sourceforge.pmd.lang.ast.Node;
|
||||
|
||||
/**
|
||||
* A record declaration is a special data class type (JDK 14 preview feature).
|
||||
* A record declaration is a special data class type (JDK 14 and JDK 15 preview feature).
|
||||
* This is a {@linkplain Node#isFindBoundary() find boundary} for tree traversal methods.
|
||||
*
|
||||
* <pre class="grammar">
|
||||
@ -25,7 +25,7 @@ import net.sourceforge.pmd.lang.ast.Node;
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
* @see <a href="https://openjdk.java.net/jeps/359">JEP 359: Records (Preview)</a>
|
||||
* @see <a href="https://openjdk.java.net/jeps/384">JEP 384: Records (Second Preview)</a>
|
||||
*/
|
||||
@Experimental
|
||||
public final class ASTRecordDeclaration extends AbstractAnyTypeDeclaration {
|
||||
|
Reference in New Issue
Block a user