Skip to content

Commit

Permalink
Rename 'removeUnusedLambdaParameters' to 'renameUnusedLocalVariables'.
Browse files Browse the repository at this point in the history
- The clean up now supports additional cases from upstream.

Signed-off-by: Roland Grunberg <[email protected]>
  • Loading branch information
rgrunber committed Nov 20, 2024
1 parent 839831f commit eb2d3c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class RenameUnusedLocalVariableCleanup implements ISimpleCleanUp {

@Override
public Collection<String> getIdentifiers() {
return List.of("removeUnusedLambdaParameters", CleanUpConstants.REMOVE_UNUSED_CODE_LOCAL_VARIABLES);
return List.of("renameUnusedLocalVariables", CleanUpConstants.REMOVE_UNUSED_CODE_LOCAL_VARIABLES);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ public void test() {
}
}
""";
List<TextEdit> textEdits = registry.getEditsForAllActiveCleanUps(new TextDocumentIdentifier(uri), Arrays.asList("removeUnusedLambdaParameters"), monitor);
List<TextEdit> textEdits = registry.getEditsForAllActiveCleanUps(new TextDocumentIdentifier(uri), Arrays.asList("renameUnusedLocalVariables"), monitor);
String actual = TextEditUtil.apply(unit, textEdits);
assertEquals(expected, actual);
}
Expand Down

0 comments on commit eb2d3c9

Please sign in to comment.