|
|
|
|
|
by JnRouvignac
4035 days ago
|
|
Do you expect AutoRefactor to work with code using Lombok? I did not try, but I don't expect so. Why? Because AFAIK, Lombok enabled code is not valid java code. So I don't expect that Eclipse JDT (basis for AutoRefactor) will be able to parse it. The only way to make this work would be to work on the code generated by Lombok, then do the round trip back to the original Lombok source.
Patch welcome! If someone tries it out, I would be happy to read the feedback. BTW I think AutoValue could work better thanks to the use of standard annotation pre processor. |
|
No, I don't expect it to, but that doesn't mean I wouldn't like it to :)
> AFAIK, Lombok enabled code is not valid java code.
Lombok enabled code is valid Java syntax, as it is implemented as an annotation processor. However, Lombok enabled code won't type-check (or run properly) without actually running Lombok.