--- a/test/langtools/tools/javac/switchexpr/ExpressionSwitchFlow.java Sun Jun 09 15:48:57 2019 -0700
+++ b/test/langtools/tools/javac/switchexpr/ExpressionSwitchFlow.java Mon Jun 10 05:09:52 2019 +0200
@@ -9,7 +9,7 @@
private String test1(int i) {
return switch (i) {
case 0 -> {}
- default -> { break "other"; }
+ default -> { yield "other"; }
};
}
private String test2(int i) {
@@ -27,7 +27,7 @@
}
private String test4(int i) {
return switch (i) {
- case 0 -> { break "other"; }
+ case 0 -> { yield "other"; }
default -> {}
};
}