RFR: JDK-8264222: Use switch expression in jshell where possible [v3]
Tagir F.Valeev
tvaleev at openjdk.java.net
Sun Mar 28 02:36:57 UTC 2021
> 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:
- Remove trailing whitespace
- Formatting updated, another expression switch in sourceToSnippets method
-------------
Changes:
- all: https://git.openjdk.java.net/jdk/pull/3210/files
- new: https://git.openjdk.java.net/jdk/pull/3210/files/a6501a96..819901b3
Webrevs:
- full: https://webrevs.openjdk.java.net/?repo=jdk&pr=3210&range=02
- incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=3210&range=01-02
Stats: 38 lines in 2 files changed: 4 ins; 2 del; 32 mod
Patch: https://git.openjdk.java.net/jdk/pull/3210.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/3210/head:pull/3210
PR: https://git.openjdk.java.net/jdk/pull/3210
More information about the kulla-dev
mailing list