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 2736e2a commit 2f57115
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions document/_java.learnMoreAboutCleanUps.md
Original file line number Diff line number Diff line change
Expand Up @@ -407,9 +407,9 @@ public class A {
}
```

### `removeUnusedLambdaParameters`
### `renameUnusedLocalVariables`

Rename unused lambda parameters, or unused pattern variables to `_`.
Rename unused loop variables, try-with-resource variables, catch parameters, lambda parameters, pattern variables to `_`.

For example:

Expand All @@ -431,4 +431,4 @@ switch (r) {
case R(_, _) -> {}
case R _ -> {}
}
```
```
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1314,7 +1314,7 @@
"tryWithResource",
"renameFileToType",
"organizeImports",
"removeUnusedLambdaParameters"
"renameUnusedLocalVariables"
]
},
"default": [
Expand Down

0 comments on commit 2f57115

Please sign in to comment.