From 2f57115288bba92124a96dc399e2af04bbdc0827 Mon Sep 17 00:00:00 2001 From: Roland Grunberg Date: Wed, 20 Nov 2024 10:40:25 -0500 Subject: [PATCH] Rename 'removeUnusedLambdaParameters' to 'renameUnusedLocalVariables'. - The clean up now supports additional cases from upstream. Signed-off-by: Roland Grunberg --- document/_java.learnMoreAboutCleanUps.md | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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": [