Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jjohnstn authored and akurtakov committed Apr 26, 2024
1 parent 3804045 commit 0b14a97
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
Binary file added news/4.32/images/decl-with-assignment-after.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions news/4.32/jdt.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,17 @@ <h2>Java Editor </h2>
<p><img src="images/string-format-after.png" alt="after changing to String.format" width="800"/></p>
</td>
</tr>
<tr id="combine-decl-and-assigment">
<td class="title"><a href="#combine-decl-and-assignment">Combine declaration and assignment</a></td>
<td class="content">
<!-- https://github.com/eclipse-jdt/eclipse.jdt.core/pull/1330 -->
The <b>Remove overridden assignment</b> cleanup found in the <b>Unnecessary Code</b> tab of the clean-up configuration dialog has been enhanced to combine a variable declaration that is immediately followed by assignment into a declaration with assignment.
<p>For example, the following:</p>
<p><img src="images/decl-with-assignment-after.png" alt="declaration with assignment immediately after" width="800"/></p>
<p>will be transformed into:</p>
<p><img src="images/decl-with-assignment-combined.png" alt="declaration with assignment combined" width="800"/></p>
</td>
</tr>
<!-- ******************* End of Java Editor ************************************* -->

<!-- ******************* Java Views and Dialogs ************************************* -->
Expand Down

0 comments on commit 0b14a97

Please sign in to comment.