diff --git a/news/4.34/images/ifelse-to-switch-null-21-after.png b/news/4.34/images/ifelse-to-switch-null-21-after.png new file mode 100644 index 00000000..ea635751 Binary files /dev/null and b/news/4.34/images/ifelse-to-switch-null-21-after.png differ diff --git a/news/4.34/images/ifelse-to-switch-null-after.png b/news/4.34/images/ifelse-to-switch-null-after.png new file mode 100644 index 00000000..c7c2fabf Binary files /dev/null and b/news/4.34/images/ifelse-to-switch-null-after.png differ diff --git a/news/4.34/images/ifelse-to-switch-null-before.png b/news/4.34/images/ifelse-to-switch-null-before.png new file mode 100644 index 00000000..b018343a Binary files /dev/null and b/news/4.34/images/ifelse-to-switch-null-before.png differ diff --git a/news/4.34/images/ifelseboolean-after.png b/news/4.34/images/ifelseboolean-after.png new file mode 100644 index 00000000..5e0fd8c0 Binary files /dev/null and b/news/4.34/images/ifelseboolean-after.png differ diff --git a/news/4.34/images/ifelseboolean-before.png b/news/4.34/images/ifelseboolean-before.png new file mode 100644 index 00000000..692335ec Binary files /dev/null and b/news/4.34/images/ifelseboolean-before.png differ diff --git a/news/4.34/jdt.html b/news/4.34/jdt.html index cbea8acb..70b6304c 100644 --- a/news/4.34/jdt.html +++ b/news/4.34/jdt.html @@ -65,6 +65,32 @@
To use the clean-up, go to the Code Style tab of the clean-up configuration dialog under Control statements and select: Simplify boolean if/else to single return if possible.
+For example, applying the clean-up to the following code:
+ +results in:
+ +The clean-up is accessed on the Code style tab of the clean-up configuration dialog under Control statements and selecting: Convert if/else if/else chain with 3 blocks min to switch.
+Applying the clean-up to the following code:
+
+results in the following when Java version is less than 21
+ +and results in the following when the Java release is set to 21 and up:
+ + +