[java] Remove Experimental for TextBlocks, Update javadoc for Java15 Preview

This commit is contained in:
Andreas Dangel
2020-08-14 22:20:40 +02:00
parent 0d9b5a7c3b
commit 8b159f389a
7 changed files with 7 additions and 11 deletions

View File

@ -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();

View File

@ -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

View File

@ -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">

View File

@ -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">
*

View File

@ -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">
*

View File

@ -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">
*

View File

@ -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 {