RFR: 8287333: Clean up ParamTaglet and ThrowsTaglet [v3]
Jonathan Gibbons
jjg at openjdk.java.net
Tue Jun 7 05:59:17 UTC 2022
On Tue, 7 Jun 2022 00:35:56 GMT, Pavel Rappo <prappo at openjdk.org> wrote:
>> src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/taglets/ParamTaglet.java line 92:
>>
>>> 90: ? utils.getTypeParamTrees(ee)
>>> 91: : utils.getParamTrees(ee);
>>> 92: List<? extends Element> parameters = input.isTypeVariableParamTag
>>
>> Change both or neither; don't leave the code inconsistent
>
> I'm not sure why list of parameter trees have to be the same as list of elements. I can change (methods such as) `Utils#getTypeParamTrees`, but I cannot change (methods such as) `ExecutableElement#getTypeParameters` (sadly). Useless bounded wildcards clutter code.
Hmm, not really convinced but OK
-------------
PR: https://git.openjdk.java.net/jdk/pull/8886
More information about the javadoc-dev
mailing list