I'm parsing Java source files with Javaparser (javaparser-core 2.0.0) to get Javadoc comments from methods.
However, I always get null
When I call MethodDeclaration.getJavaDoc()
. Looking at the source of MethodDeclaration
, I can see why:
public JavadocComment getJavaDoc() {
return null;
}
(It appears Javadoc is available from Node.getComment()
instead)
My question is: Why is method Javadoc not available from MethodDeclaration.getJavaDoc()
?