Code Review
/
mdsal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(from:
0ceceb7
)
Generate a switch expression in forName()/forIntValue()
16/100816/4
author
Robert Varga
<robert.varga@pantheon.tech>
Tue, 26 Apr 2022 12:53:38 +0000
(14:53 +0200)
committer
Robert Varga
<nite@hq.sk>
Tue, 26 Apr 2022 15:46:44 +0000
(15:46 +0000)
JDK17 allows us to use switch expressions, which are nice and concise
way of matching values. Use them instead of ImmutableMaps for value
lookups.
JIRA: MDSAL-753
Change-Id: I1f12eb7469ce08ee66024abfb2bef5305f1cee63
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
No differences found