Skip to content

Commit

Permalink
[23] add @noreference to DOM additions for preview features
Browse files Browse the repository at this point in the history
  • Loading branch information
stephan-herrmann committed Aug 27, 2024
1 parent cbce8dd commit 498ccb4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -202,6 +203,7 @@ public List modifiers() {
* @return the bit-wise "or" of <code>Modifier</code> constants
* @see Modifier
* @since 3.39
* @noreference preview feature
*/
public int getModifiers() {
if (this.modifiers == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ public List tags() {
* @return <code>true</code> if this is a markdown comment,
* and <code>false</code> if this is a traditional javadoc comment.
* @since 3.39
* @noreference preview feature
*/
public boolean isMarkdown() {
if (this.ast.apiLevel < AST.JLS23_INTERNAL) {
Expand All @@ -348,6 +349,7 @@ public boolean isMarkdown() {
* @param isMarkdown <code>true</code> if this is a markdown comment,
* and <code>false</code> 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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 498ccb4

Please sign in to comment.