forked from eclipse-jdt/eclipse.jdt.core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for inline tags within an inlined return
- modify AbstractCommentParser to keep track when we are in an inlined return statement and to add inline tags as fragments - add addFragmentToInlineReturn() method - add new test to JavadocTest_16 - fixes eclipse-jdt#1026
- Loading branch information
Showing
3 changed files
with
63 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2023 Andrey Loskutov ([email protected]) and others. | ||
* Copyright (c) 2023, 2024 Andrey Loskutov ([email protected]) and others. | ||
* | ||
* This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License 2.0 | ||
|
@@ -144,7 +144,26 @@ public int sample() { | |
} | ||
); | ||
} | ||
|
||
public void testInlineReturn3() { | ||
if(this.complianceLevel < ClassFileConstants.JDK16) { | ||
return; | ||
} | ||
this.runConformTest( | ||
new String[] { | ||
"X.java", | ||
""" | ||
public class X { | ||
/** {@return {@code true} or else | ||
* {@code false}} | ||
*/ | ||
public boolean sample() { | ||
return false; | ||
} | ||
} | ||
""", | ||
} | ||
); | ||
} | ||
public void testInlineReturn_broken1() { | ||
if(this.complianceLevel < ClassFileConstants.JDK16) { | ||
return; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters