Integrated: JDK-8264222: Use switch expression in jshell where possible

Tagir F.Valeev tvaleev at openjdk.java.net
Thu Apr 1 06:05:25 UTC 2021


On Fri, 26 Mar 2021 00:43:44 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)

This pull request has now been integrated.

Changeset: 3997c99e
Author:    Tagir F. Valeev <tvaleev at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/3997c99e
Stats:     163 lines in 5 files changed: 0 ins; 76 del; 87 mod

8264222: Use switch expression in jshell where possible

Reviewed-by: briangoetz

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

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


More information about the kulla-dev mailing list