aboutsummaryrefslogtreecommitdiff
path: root/test/pretty/resource/after/Switch11.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <r.zwitserloot@projectlombok.org>2019-04-24 13:52:17 +0200
committerReinier Zwitserloot <r.zwitserloot@projectlombok.org>2019-04-24 13:52:17 +0200
commitccaefff69fc021048ac6918948a0cae29e045b76 (patch)
treeded9306d5f0b895b13a231b291e7dd01a850163d /test/pretty/resource/after/Switch11.java
parent031da25e35cc3ca3bdc1e2783415d27fe83dc8d9 (diff)
downloadlombok-ccaefff69fc021048ac6918948a0cae29e045b76.tar.gz
lombok-ccaefff69fc021048ac6918948a0cae29e045b76.tar.bz2
lombok-ccaefff69fc021048ac6918948a0cae29e045b76.zip
[jdk12] adding support for the new nodes introduced for the improvements to switch statements, and the ‘switch expression’ preview feature, as well as support for the concept of preview features in general.
Diffstat (limited to 'test/pretty/resource/after/Switch11.java')
-rw-r--r--test/pretty/resource/after/Switch11.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/pretty/resource/after/Switch11.java b/test/pretty/resource/after/Switch11.java
new file mode 100644
index 00000000..d24012a2
--- /dev/null
+++ b/test/pretty/resource/after/Switch11.java
@@ -0,0 +1,11 @@
+public class Switch11 {
+ public void basic() {
+ switch (5) {
+ case 1:
+ case 2:
+ System.out.println("OK");
+ break;
+ default:
+ }
+ }
+}