Skip to content
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 #6320: added REMOVE_CONDITIONALS mutator for modifier #6323

Merged
merged 1 commit into from
Dec 28, 2018

Conversation

rnveach
Copy link
Member

@rnveach rnveach commented Dec 28, 2018

Issue #6320

@@ -236,7 +236,7 @@ private void checkEnumDef(DetailAST ast) {
if (isInterfaceOrAnnotationMember(ast)) {
processInterfaceOrAnnotation(ast);
}
else if (ast.getParent() != null) {
else {
checkForRedundantModifier(ast, TokenTypes.LITERAL_STATIC);
Copy link
Member Author

@rnveach rnveach Dec 28, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An enum can't be a top class and have static modifier. It won't compile.
This check may prevent some excess computations from happening since we know it can't be possible. Should we still remove this check? The only way to kill it would be to use powermock to count calls to checkForRedundantModifier.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's remove

@rnveach
Copy link
Member Author

rnveach commented Dec 28, 2018

Regression when done running: http://rveach.no-ip.org/checkstyle/regression/reports/207/

@rnveach
Copy link
Member Author

rnveach commented Dec 28, 2018

@romani Regression shows no differences.
Jenkins failure looks like a false error as others are passing. I don't know how to restart jenkins.

@rnveach rnveach requested a review from romani December 28, 2018 14:54
@romani romani merged commit 6032c84 into checkstyle:master Dec 28, 2018
@rnveach rnveach deleted the issue_6320_modifier branch December 28, 2018 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants