-
-
Notifications
You must be signed in to change notification settings - Fork 349
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
Comments
Could you write a PR? Thanks. |
I found this bug too when I developed my refactoring of replacing elements. @leventov you can write a PR or wait for my PR. |
leventov
added a commit
to leventov/spoon
that referenced
this issue
Apr 22, 2016
…ersal should be delegated to scan(), fixes INRIA#603
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Instead, it should delegate to genetic
scan(Collection)
method. This allows to override justscan(Collection)
in some subclass ofCtScanner
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.The text was updated successfully, but these errors were encountered: