Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
11.2
-
None
Description
In JDK-13 break with-a -value will be replaced with yield statement.
Currently formatting of yield statement is not supported in NB
int result = switch (s) {
{{ case "Foo": yield 1;}}
{{ case "Bar": yield 2; }}
{{default: yield 0; }}
};
Attachments
Issue Links
- is part of
-
NETBEANS-2917 Support for Yield in Switch-Expression for JDK-13
- Closed