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

[java] Fix ClassCastException on SignatureDeclareThrowsException #1388

Merged
merged 4 commits into from Oct 17, 2018

Conversation

jsotuyod
Copy link
Member

Fixes #1369

@jsotuyod jsotuyod added this to the 6.9.0 milestone Oct 15, 2018
@pmd-test
Copy link

pmd-test commented Oct 15, 2018

1 Message
📖 This changeset introduces 0 new violations and 0 new errors,
removes 0 violations and 2 errors. Full report
This changeset introduces 0 new violations and 0 new errors,
removes 0 violations and 2 errors. Full report

Generated by 🚫 Danger

@@ -77,7 +77,7 @@ public Object visit(ASTClassOrInterfaceDeclaration node, Object data) {
}
}
if (node.jjtGetNumChildren() != 0 && node.jjtGetChild(0) instanceof ASTExtendsList) {
Copy link
Member

@oowekyala oowekyala Oct 15, 2018

Choose a reason for hiding this comment

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

This block and the one checking the interfaces (above) could be simplified using the methods getSuperInterfacesTypeNodes and getSuperClassTypeNode of ASTClassOrInterfaceDeclaration

@jsotuyod
Copy link
Member Author

@oowekyala done! good catch!

@adangel adangel self-assigned this Oct 17, 2018
@adangel adangel merged commit 53a60ee into pmd:master Oct 17, 2018
@jsotuyod jsotuyod deleted the issue-1369 branch October 17, 2018 11:08
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

4 participants