diff options
author | Bulgakov Alexander <buls@yandex.ru> | 2019-04-25 23:35:01 +0300 |
---|---|---|
committer | Bulgakov Alexander <buls@yandex.ru> | 2019-04-25 23:35:01 +0300 |
commit | afe9e374975c85a87fdf6c0d45171ac44f616a37 (patch) | |
tree | d49b9f905a564729d5cdefa2f9626266b0b541f0 /test/pretty/resource/after | |
parent | f0343886a331f3cb2175545a062f3736610f9179 (diff) | |
parent | 150be0a186d880503cb23d056ea4cf229ebc37e5 (diff) | |
download | lombok-afe9e374975c85a87fdf6c0d45171ac44f616a37.tar.gz lombok-afe9e374975c85a87fdf6c0d45171ac44f616a37.tar.bz2 lombok-afe9e374975c85a87fdf6c0d45171ac44f616a37.zip |
Merge branch 'master' into feature/typeInferenceImprovements
Diffstat (limited to 'test/pretty/resource/after')
-rw-r--r-- | test/pretty/resource/after/Java11Var.java (renamed from test/pretty/resource/after/Java11Var.javva) | 0 | ||||
-rw-r--r-- | test/pretty/resource/after/Switch11.java | 11 | ||||
-rw-r--r-- | test/pretty/resource/after/Switch12.java | 28 |
3 files changed, 39 insertions, 0 deletions
diff --git a/test/pretty/resource/after/Java11Var.javva b/test/pretty/resource/after/Java11Var.java index cec4be6d..cec4be6d 100644 --- a/test/pretty/resource/after/Java11Var.javva +++ b/test/pretty/resource/after/Java11Var.java 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: + } + } +} diff --git a/test/pretty/resource/after/Switch12.java b/test/pretty/resource/after/Switch12.java new file mode 100644 index 00000000..89825223 --- /dev/null +++ b/test/pretty/resource/after/Switch12.java @@ -0,0 +1,28 @@ +public class Switch12 { + public void basic() { + switch (5) { + case 1: + case 2: + System.out.println("OK"); + break; + default: + } + } + public void multiCase() { + switch (5) { + case 1, 2: + System.out.println("OK"); + default: + } + } + + public int switchExpr() { + return switch (5) { + case 1, 2 -> 0; + case 3 -> { + break 10; + } + default -> 10; + } + 10; + } +} |