8251939: Fix copy-paste issues and address TODOs

Reviewed-by: jjg
This commit is contained in:
Pavel Rappo 2020-08-18 17:34:59 +01:00
parent 74cb1b4e75
commit 9871f3a27a
4 changed files with 6 additions and 5 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -33,7 +33,7 @@ package com.sun.source.tree;
* yield <em>expression</em> ;
* </pre>
*
* @jls section TODO
* @jls 14.21 The yield Statement
*
* @since 13
*/

View File

@ -275,7 +275,7 @@ public class DocTreeScanner<R,P> implements DocTreeVisitor<R,P> {
}
/**
* {@inheritDoc} This implementation returns {@code null}.
* {@inheritDoc} This implementation scans the children in left to right order.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}

View File

@ -950,7 +950,7 @@ public class TreeScanner<R,P> implements TreeVisitor<R,P> {
}
/**
* {@inheritDoc} This implementation returns {@code null}.
* {@inheritDoc} This implementation scans the children in left to right order.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}

View File

@ -31,6 +31,7 @@ import java.util.Map;
import com.sun.source.doctree.AttributeTree.ValueKind;
import com.sun.source.doctree.ErroneousTree;
import com.sun.source.doctree.UnknownBlockTagTree;
import com.sun.source.doctree.UnknownInlineTagTree;
import com.sun.tools.javac.parser.Tokens.Comment;
import com.sun.tools.javac.tree.DCTree;
import com.sun.tools.javac.tree.DCTree.DCAttribute;
@ -303,7 +304,7 @@ public class DocCommentParser {
/**
* Read a single inline tag, including its content.
* Standard tags parse their content appropriately.
* Non-standard tags are represented by {@link UnknownBlockTagTree}.
* Non-standard tags are represented by {@link UnknownInlineTagTree}.
* Malformed tags may be returned as {@link ErroneousTree}.
*/
protected DCTree inlineTag() {