RFR: JDK-8286153: Remove redundant casts and other cleanup
Jonathan Gibbons
jjg at openjdk.java.net
Thu May 5 14:48:28 UTC 2022
On Thu, 5 May 2022 10:38:43 GMT, Pavel Rappo <prappo at openjdk.org> wrote:
>> src/jdk.javadoc/share/classes/jdk/javadoc/internal/tool/ElementsTable.java line 1206:
>>
>>> 1204: AccessKind accessValue = null;
>>> 1205: for (ElementKind kind : ALLOWED_KINDS) {
>>> 1206: accessValue = switch (kind) {
>>
>> It feels awkward when adjacent `switch` statements use different formatting.
>
> Correction: `switch` _expressions_ in this case.
will examine; I was (generally) trying not to override IDE formatting.
-------------
PR: https://git.openjdk.java.net/jdk/pull/8543
More information about the javadoc-dev
mailing list