Enhance SwitchExpression cleanup to support return statements #106
diff --git a/4.25/images/convert-to-switch-expression-after.png b/4.25/images/convert-to-switch-expression-after.png
new file mode 100644
index 0000000..8463d6e
--- /dev/null
+++ b/4.25/images/convert-to-switch-expression-after.png
Binary files differ
diff --git a/4.25/images/convert-to-switch-expression-before.png b/4.25/images/convert-to-switch-expression-before.png
new file mode 100644
index 0000000..4543af6
--- /dev/null
+++ b/4.25/images/convert-to-switch-expression-before.png
Binary files differ
diff --git a/4.25/jdt.html b/4.25/jdt.html
index a00faf3..cb5abdf 100644
--- a/4.25/jdt.html
+++ b/4.25/jdt.html
@@ -85,6 +85,24 @@
</td>
</tr>
+ <tr id="convert-to-switch-expression"> <!-- https://github.com/eclipse-jdt/eclipse.jdt.ui/pull/106 -->
+ <td class="title"><a href="#convert-to-switch-expression">Convert to switch expression</a></td>
+ <td class="content">
+ The clean-up to convert to use a switch expression where possible has been enhanced to recognize switch statements that have every case either end in a return statement or a throw of an exception. In such a case the switch statement is converted into a return of a switch expression.
+ <p>
+ To apply the cleanup, select the Java 14 <b>Convert to switch expression where possible</b> checkbox on the <b>Java Feature</b> tab in your cleanup profile.
+ </p>
+ <p>
+ With the cleanup, the following:
+ </p>
+ <p><img src="images/convert-to-switch-expression-before.png" alt="Before"/></p>
+ <p>
+ Is changed to:
+ </p>
+ <p><img src="images/convert-to-switch-expression-after.png" alt="After"/></p>
+ </td>
+ </tr>
+
<!-- ******************* End of Java Editor ************************************* -->
<!-- ******************* Java Views and Dialogs ************************************* -->