On Thu, 14 Apr 2022 11:41:59 GMT, Pavel Rappo <pra...@openjdk.org> wrote:
>> src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/taglets/InheritDocTaglet.java >> line 112: >> >>> 110: assert !(e instanceof TypeElement typeElement) >>> 111: || typeElement.getSuperclass().getKind() == >>> TypeKind.NONE; >>> 112: String message = utils.getSimpleName(e) + >> >> `message` sounds more freeform than the value might imply. I'd be tempted to >> call it `signature`, and replace the `""` with `e.toString()` (just in case) > > I was tempted to use `String.valueOf(e)`, but then realized that `e` is > guaranteed (although implicitly) to not be `null` by the preceding call to > `Utils.isExecutableElement`. I was tempted to use `String.valueOf(e)`, but then realized that `e` is guaranteed (although implicitly) to not be `null` by the preceding call to `Utils.isExecutableElement`. ------------- PR: https://git.openjdk.java.net/jdk/pull/8229