You use JavaPoet or something of that nature?
# kapt
a
You use JavaPoet or something of that nature?
h
I don’t use anything yet , but if it would allow to share javadoc between methods via some annotation processor, I certainly would.
It’s actually also kind of dokka feature which is still missing imho.
a
well javapoet and (I think) KotlinPoet both allow you to add code comments with references to other classes and handle imports on generated code
h
But don’t both libaries create new source code from scratch? I have an existing codebase, and like to share javadoc between methods.
a
Oh misunderstood. Haha my bad
Then no you can't add to existing
Unless you use bytecode transformers but that is not easy and not worth the time
b
Annotation processing can only generate new code. So you would need the documentation engine to understand what to do with the shared doc when it comes across it from the annotation generation
h
Thanks for the info.