RFR: JDK-8264222: Use switch expression in jshell where possible [v2]
Brian Goetz
briangoetz at openjdk.java.net
Sat Mar 27 00:34:25 UTC 2021
On Fri, 26 Mar 2021 23:47:41 GMT, Tagir F. Valeev <tvaleev at openjdk.org> wrote:
>> This change is powered by IntelliJ IDEA quick-fix.
>> I also took the liberty to fix C-style arrays in changed files.
>>
>> In SourceCodeAnalysisImpl.java:501, I left case PARAMETERIZED_TYPE -> FALSE as a separate switch case, because it had a comment. Better formatting ideas are welcome.
>>
>> If you like this, I can provide similar PR in other components as well (e.g. in javac)
>
> Tagir F. Valeev has updated the pull request incrementally with two additional commits since the last revision:
>
> - resultTypeOf: update comment instead of splitting the case
> - resultTypeOf: split CONSTRUCTOR and INSTANCE_INIT/STATIC_INIT case to position the comments properly
Marked as reviewed by briangoetz (Reviewer).
-------------
PR: https://git.openjdk.java.net/jdk/pull/3210
More information about the kulla-dev
mailing list