From 76fef2f2e464ec687fca5835c432afc08dec3578 Mon Sep 17 00:00:00 2001 From: Stephan Herrmann Date: Tue, 27 Aug 2024 14:34:47 +0200 Subject: [PATCH] [23] add @noreference to DOM additions for preview features --- .../dom/org/eclipse/jdt/core/dom/ImportDeclaration.java | 2 ++ org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/Javadoc.java | 2 ++ org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/Modifier.java | 1 + 3 files changed, 5 insertions(+) diff --git a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ImportDeclaration.java b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ImportDeclaration.java index f6d46fa3c57..c3e37dd36bc 100644 --- a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ImportDeclaration.java +++ b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ImportDeclaration.java @@ -181,6 +181,7 @@ public static List propertyDescriptors(int apiLevel) { * @exception UnsupportedOperationException if this operation is used in * an AST below JLS23 * @since 3.39 + * @noreference preview feature */ public List modifiers() { if (this.ast.apiLevel < AST.JLS23_INTERNAL) @@ -202,6 +203,7 @@ public List modifiers() { * @return the bit-wise "or" of Modifier constants * @see Modifier * @since 3.39 + * @noreference preview feature */ public int getModifiers() { if (this.modifiers == null) { diff --git a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/Javadoc.java b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/Javadoc.java index f7716f7c5ed..80a7889979b 100644 --- a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/Javadoc.java +++ b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/Javadoc.java @@ -334,6 +334,7 @@ public List tags() { * @return true if this is a markdown comment, * and false if this is a traditional javadoc comment. * @since 3.39 + * @noreference preview feature */ public boolean isMarkdown() { if (this.ast.apiLevel < AST.JLS23_INTERNAL) { @@ -348,6 +349,7 @@ public boolean isMarkdown() { * @param isMarkdown true if this is a markdown comment, * and false if this is a traditional javadoc comment. * @since 3.39 + * @noreference preview feature */ public void setMarkdown(boolean isMarkdown) { if (this.ast.apiLevel < AST.JLS23_INTERNAL) { diff --git a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/Modifier.java b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/Modifier.java index 1cc5704b999..58ac13df172 100644 --- a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/Modifier.java +++ b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/Modifier.java @@ -807,6 +807,7 @@ public boolean isNonSealed() { * * @return true if the receiver is the module modifier, false otherwise * @since 3.39 + * @noreference preview feature */ public static boolean isModule(int flags) { return (flags & Modifier.MODULE) != 0;