-
Notifications
You must be signed in to change notification settings - Fork 13
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
UnnecessaryModifier mutator misses several opportunities to remove redundant modifiers #846
Comments
Many of these are covered in #848
Done in #848. These are applied even if the record is not nested.
It is already covered. (right?)
I do not understand the case.
does not compile.
I'm adding:
|
Try public enum Person {
;
public static class SomeClass {}
} |
I don't think it was covered for a parent other than interface or annotation |
I updated the description to cover class as a parent, in addition to enum and record. Put another way
|
I indeed reworked
The reworked implementation indeed follows this wording.
Done
Done
Done |
I had a chance to review. Looks both thorough and simplified. I expanded your new test case in PR #850, and identified one more opportunity to remove the redundant |
* Expand test case for issue #846 * Remove redundant final modifier from private methods * Fix Java source that would not compile
To my knowledge, these cases are not covered
public
,static
, andfinal
could be removed from a nested recordstatic
andabstract
could be removed from a nested interface or annotationstatic
could be removed from a nested enumstatic
andfinal
could be removed from a nested recordfinal
could be removed from a private methodThe text was updated successfully, but these errors were encountered: