To migrate a java API I need to replace an annotation with the value of an attribute and I'm looking for how to do it:
Before:
@Foo(values = {@Bar(value="one"), @Bar(Value="two")})
private void stuff() {
}
After :
@Foo(values = { "one" , "two" })
private void stuff() {
}
I tried using the visitAnnotation() method but this should return an annotation and not a literal. If anyone has any idea or advice how to do this.
}