RFR: 8252882: Clean up jdk.javadoc and the related parts of jdk.compiler

Vicente Romero vromero at openjdk.java.net
Mon Sep 14 13:58:02 UTC 2020


On Mon, 14 Sep 2020 09:09:11 GMT, Pavel Rappo <prappo at openjdk.org> wrote:

> Yet another cleanup change that has accumulated during my work on `DocCommentParser` and other javadoc-related areas of
> compiler.

src/jdk.compiler/share/classes/com/sun/tools/javac/parser/DocCommentParser.java line 290:

> 288:
> 289:     protected void inlineTag(ListBuffer<DCTree> list) {
> 290:         assert buf[bp] == '{' : buf[bp];

not sure that this is what you want to do. We usually use com.sun.tools.javac.util.Assert for this as they can't be
skipped if the code is not executed with assertions off. Same for similar changes in this patch

-------------

PR: https://git.openjdk.java.net/jdk/pull/148


More information about the compiler-dev mailing list