diff --git a/document/_java.learnMoreAboutCleanUps.md b/document/_java.learnMoreAboutCleanUps.md index 36d74d746..09841c622 100644 --- a/document/_java.learnMoreAboutCleanUps.md +++ b/document/_java.learnMoreAboutCleanUps.md @@ -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: @@ -431,4 +431,4 @@ switch (r) { case R(_, _) -> {} case R _ -> {} } -``` \ No newline at end of file +``` diff --git a/package.json b/package.json index 8fbaabe8b..bba3e3a27 100644 --- a/package.json +++ b/package.json @@ -1314,7 +1314,7 @@ "tryWithResource", "renameFileToType", "organizeImports", - "removeUnusedLambdaParameters" + "renameUnusedLocalVariables" ] }, "default": [