Skip to content

I20241110-1800

@jjohnstn jjohnstn tagged this 08 Nov 21:19
* Enhance unused to unnamed var quick fix to support try with resources and for loops

- modify RenameUnusedVariableFixCore to add new method that will
  check if rename to unnamed variable is available
  and add logic for try with resources and enhanced for loops
- modify UnusedCodeCleanUpCore and UnusedCodeFixCore to use new
  method to check whether we can rename to unnamed variable
- add new tests to QuickFixTest22
- fixes #1762
Assets 2
Loading