mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 22:17:41 +00:00
[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.
This commit is contained in:
1 parent
031da25e35
commit
ccaefff69f
6 files changed
+154
-9
No files matched your search
@@ -0,0 +1,11 @@
|
||||
public class Switch11 {
|
||||
public void basic() {
|
||||
switch (5) {
|
||||
case 1:
|
||||
case 2:
|
||||
System.out.println("OK");
|
||||
break;
|
||||
default:
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user