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
Issue #4846: ignore annotation in enum constructor for RedundantModifier #4902
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CIs need to be green.
item to improve:
while (modifier != null && modifier.getType() == TokenTypes.ANNOTATION) { | ||
modifier = modifier.getNextSibling(); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Logic is not easy to understand, why first modifier is not modifier :) , it might be better to make method getFirstModifierAst()
in this class, one day it will be moved to common Util class.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Codecov Report
@@ Coverage Diff @@
## master #4902 +/- ##
======================================
Coverage 100% 100%
======================================
Files 287 287
Lines 15489 15493 +4
Branches 3518 3519 +1
======================================
+ Hits 15489 15493 +4
Continue to review full report at Codecov.
|
Regression: http://rveach.no-ip.org/checkstyle/regression/reports/97/ Showed no differences. |
as CI pass - ok to merge. |
@romani ping |
@rnveach , as you see my approval for merge, and condition is satisfied (all CIs are green) - you can merge PR yourself. |
Issue #4846
Regression to come.