< prev index next >
test/langtools/tools/javac/diags/examples/SwitchExpressionNoResultExpressions.java
Print this page
rev 56510 : 8232684: Make switch expressions final
Reviewed-by: TBD
*** 20,32 ****
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
// key: compiler.err.switch.expression.no.result.expressions
- // key: compiler.note.preview.filename
- // key: compiler.note.preview.recompile
- // options: --enable-preview -source ${jdk.version}
class SwitchExpressionCompletesNormally {
public String convert(int i) {
return switch (i) {
default -> throw new AssertionError();
--- 20,29 ----
< prev index next >