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

CtScanner.visitCtAnnotation() shouldn't iterate over annotation.getElementValues().values() manually #603

Closed
leventov opened this issue Apr 19, 2016 · 2 comments · Fixed by #614

Comments

@leventov
Copy link
Contributor

Instead, it should delegate to genetic scan(Collection) method. This allows to override just scan(Collection) in some subclass of CtScanner and enjoy same behaviour for any elements (e. g. hashCodeVisitor from here: #601 (comment) do this).

In CtScanner, visitCtAnnotation() is the only method where this rule is violated.

@monperrus
Copy link
Collaborator

Could you write a PR? Thanks.

@GerardPaligot
Copy link
Contributor

I found this bug too when I developed my refactoring of replacing elements. @leventov you can write a PR or wait for my PR.

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 a pull request may close this issue.

3 participants