maven - Delombok Java 8 Type Annotations -


i working on java 8 spring project , wanted use lombok reduce boilerplate code. since need javadoc, set lombok-maven-plugin , maven-javadoc-plugin.

after running lombok:delombok goal source generated target/generated-sources/delombok, specified it. code messed up. validation used java 8s type annotation, example:

import edu.umd.cs.findbugs.annotations.nonnull; .... set<@nonnull predictedconsumption> consumptions 

this result in:

set<(unknown[jcannotatedtype]: @nonnull() predictedconsumption)> consumptions; 

which of course not work javadoc generation. believe code generator not know how interpret type annotations.

is there way make delombok work type annotations , if so, how?

thanks in advance

this looks bug. should file issue or post lombok mailing list (the lombok authors answer on too, i'm unsure of how often).

i'd bet gets produced this line , try fix yourself.


Comments