-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UnusedLocalVariable: False Positive when inner class has same field as variable #11374
Comments
@Vishakhakumawat Fix has already been done, just pushing to remote is remaining, it is mentioned in issue description |
Vyom-Yadav
added a commit
to Vyom-Yadav/checkstyle
that referenced
this issue
Mar 26, 2022
Vyom-Yadav
added a commit
to Vyom-Yadav/checkstyle
that referenced
this issue
Mar 26, 2022
Vyom-Yadav
added a commit
to Vyom-Yadav/checkstyle
that referenced
this issue
Mar 26, 2022
Vyom-Yadav
added a commit
to Vyom-Yadav/checkstyle
that referenced
this issue
Mar 26, 2022
Vyom-Yadav
added a commit
to Vyom-Yadav/checkstyle
that referenced
this issue
Mar 31, 2022
Vyom-Yadav
added a commit
to Vyom-Yadav/checkstyle
that referenced
this issue
Mar 31, 2022
Vyom-Yadav
added a commit
to Vyom-Yadav/checkstyle
that referenced
this issue
Mar 31, 2022
Vyom-Yadav
added a commit
to Vyom-Yadav/checkstyle
that referenced
this issue
Mar 31, 2022
Vyom-Yadav
added a commit
to Vyom-Yadav/checkstyle
that referenced
this issue
Mar 31, 2022
Vyom-Yadav
added a commit
to Vyom-Yadav/checkstyle
that referenced
this issue
Apr 1, 2022
Vyom-Yadav
added a commit
to Vyom-Yadav/checkstyle
that referenced
this issue
Apr 3, 2022
Vyom-Yadav
added a commit
to Vyom-Yadav/checkstyle
that referenced
this issue
Apr 3, 2022
Vyom-Yadav
added a commit
to Vyom-Yadav/checkstyle
that referenced
this issue
Apr 3, 2022
Vyom-Yadav
added a commit
to Vyom-Yadav/checkstyle
that referenced
this issue
Mar 4, 2023
…ses in UnusedLocalVariableCheck
Vyom-Yadav
added a commit
to Vyom-Yadav/checkstyle
that referenced
this issue
Mar 4, 2023
…ses in UnusedLocalVariableCheck
Vyom-Yadav
added a commit
to Vyom-Yadav/checkstyle
that referenced
this issue
Mar 4, 2023
…ses in UnusedLocalVariableCheck
Vyom-Yadav
added a commit
to Vyom-Yadav/checkstyle
that referenced
this issue
Mar 4, 2023
…ses in UnusedLocalVariableCheck
Vyom-Yadav
added a commit
to Vyom-Yadav/checkstyle
that referenced
this issue
Mar 7, 2023
…ses in UnusedLocalVariableCheck
Vyom-Yadav
added a commit
to Vyom-Yadav/checkstyle
that referenced
this issue
Mar 7, 2023
…ses in UnusedLocalVariableCheck
Vyom-Yadav
added a commit
to Vyom-Yadav/checkstyle
that referenced
this issue
Mar 8, 2023
…ses in UnusedLocalVariableCheck
Vyom-Yadav
added a commit
to Vyom-Yadav/checkstyle
that referenced
this issue
Mar 28, 2023
…ses in UnusedLocalVariableCheck
Vyom-Yadav
added a commit
to Vyom-Yadav/checkstyle
that referenced
this issue
Mar 28, 2023
…ses in UnusedLocalVariableCheck
Vyom-Yadav
added a commit
to Vyom-Yadav/checkstyle
that referenced
this issue
Apr 7, 2023
…ses in UnusedLocalVariableCheck
Vyom-Yadav
added a commit
to Vyom-Yadav/checkstyle
that referenced
this issue
Nov 30, 2023
…ses in UnusedLocalVariableCheck
Vyom-Yadav
added a commit
to Vyom-Yadav/checkstyle
that referenced
this issue
Nov 30, 2023
…ses in UnusedLocalVariableCheck
romani
pushed a commit
to Vyom-Yadav/checkstyle
that referenced
this issue
Dec 1, 2023
…ses in UnusedLocalVariableCheck
kkoutsilis
added a commit
to kkoutsilis/checkstyle
that referenced
this issue
Nov 29, 2024
…ses in UnusedLocalVariableCheck
kkoutsilis
added a commit
to kkoutsilis/checkstyle
that referenced
this issue
Nov 29, 2024
…ses in UnusedLocalVariableCheck
kkoutsilis
added a commit
to kkoutsilis/checkstyle
that referenced
this issue
Dec 2, 2024
…ses in UnusedLocalVariableCheck
kkoutsilis
added a commit
to kkoutsilis/checkstyle
that referenced
this issue
Dec 7, 2024
…ses in UnusedLocalVariableCheck
kkoutsilis
added a commit
to kkoutsilis/checkstyle
that referenced
this issue
Dec 7, 2024
…ses in UnusedLocalVariableCheck
romani
pushed a commit
to kkoutsilis/checkstyle
that referenced
this issue
Dec 7, 2024
…ses in UnusedLocalVariableCheck
kkoutsilis
added a commit
to kkoutsilis/checkstyle
that referenced
this issue
Dec 7, 2024
…ses in UnusedLocalVariableCheck
kkoutsilis
added a commit
to kkoutsilis/checkstyle
that referenced
this issue
Dec 8, 2024
…ses in UnusedLocalVariableCheck
kkoutsilis
added a commit
to kkoutsilis/checkstyle
that referenced
this issue
Dec 14, 2024
…ses in UnusedLocalVariableCheck
Closed via #15969 |
dongjoon-hyun
pushed a commit
to apache/spark
that referenced
this issue
Feb 12, 2025
### What changes were proposed in this pull request? This PR aims to upgrade `checkstyle` from 10.20.2 to 10.21.2. ### Why are the changes needed? To pick up bug fixes: - checkstyle-10.21.2 checkstyle/checkstyle#15939 - lineWrappingIndentation falsely detects incorrect indentation for text blocks checkstyle/checkstyle#16101 - ignoreFieldDeclaration property should have the highest priority in MagicNumberCheck - checkstyle-10.21.1 checkstyle/checkstyle#11374 - UnusedLocalVariable: False Positive when inner class has same field as variable Full release notes: - https://github.com/checkstyle/checkstyle/releases/tag/checkstyle-10.21.2 - https://github.com/checkstyle/checkstyle/releases/tag/checkstyle-10.21.1 ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Manually by: ``` bash ./dev/lint-java ``` ### Was this patch authored or co-authored using generative AI tooling? No. Closes #49899 from wayneguow/checkstyle. Authored-by: Wei Guo <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
kazemaksOG
pushed a commit
to kazemaksOG/spark-custom-scheduler
that referenced
this issue
Mar 27, 2025
### What changes were proposed in this pull request? This PR aims to upgrade `checkstyle` from 10.20.2 to 10.21.2. ### Why are the changes needed? To pick up bug fixes: - checkstyle-10.21.2 checkstyle/checkstyle#15939 - lineWrappingIndentation falsely detects incorrect indentation for text blocks checkstyle/checkstyle#16101 - ignoreFieldDeclaration property should have the highest priority in MagicNumberCheck - checkstyle-10.21.1 checkstyle/checkstyle#11374 - UnusedLocalVariable: False Positive when inner class has same field as variable Full release notes: - https://github.com/checkstyle/checkstyle/releases/tag/checkstyle-10.21.2 - https://github.com/checkstyle/checkstyle/releases/tag/checkstyle-10.21.1 ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Manually by: ``` bash ./dev/lint-java ``` ### Was this patch authored or co-authored using generative AI tooling? No. Closes apache#49899 from wayneguow/checkstyle. Authored-by: Wei Guo <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have read check documentation: https://checkstyle.sourceforge.io/config_coding.html#UnusedLocalVariable
I have downloaded the latest checkstyle from: https://checkstyle.org/cmdline.html#Download_and_Run
I have executed the cli and showed it below, as cli describes the problem better than 1,000 words
Describe what you expect in detail.
Discovered while working on #11365, the source has been identified, the fix has been done locally, will be pushed soon.
The text was updated successfully, but these errors were encountered: