8262421: doclint warnings in jdk.compiler module

Reviewed-by: iris, darcy
This commit is contained in:
Jonathan Gibbons 2021-02-25 22:28:07 +00:00
parent 29c603f9dc
commit 8256517016
2 changed files with 9 additions and 4 deletions

View File

@ -269,13 +269,17 @@ public interface DocTreeFactory {
* Creates a new {@code ReturnTree} object, to represent a {@code @return} tag
* or {@code {@return}} tag.
*
* @param isInline {@code true} if this instance is as an inline tag,
* and {@code false} otherwise
* @param description the description of the return value of a method
*
* @return a {@code ReturnTree} object
* @throws UnsupportedOperationException if inline {@code {@return}} tags are
* not supported
*
* @implSpec This implementation throws {@code UnsupportedOperationException} if
* {@code isInline} is {@code true}, and calls {@link #newReturnTree(List)} otherwise.
*
* @param description the description of the return value of a method
* @return a {@code ReturnTree} object
* @throws UnsupportedOperationException if inline {@code {@return}} tags are
* not supported
* @since 16
*/
default ReturnTree newReturnTree(boolean isInline, List<? extends DocTree> description) {

View File

@ -232,6 +232,7 @@ public abstract class DocTrees extends Trees {
* <a href="https://www.w3.org/TR/html52/syntax.html#character-references">8.1.4. Character references</a>
* in the HTML 5.2 specification.</p>
*
* @param tree the tree containing the entity
* @return a string containing the characters
*/
public abstract String getCharacters(EntityTree tree);