You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Spoon offers a getShortDescription() method in CtJavadoc. This method should (I guess) return the short Javadoc the standard HTML Doclet displays in the method table. The javadoc tool description (e.g. here) says:
Copies the first sentence of the overview comment to the top of the overview summary page.
Problem statement
Sadly the current handling is a bit too simplistic (I heard an issue is only complete once it includes images, so here goes nothing):
As you can see the javadoc is cut off after java.. Spoon sees the Javadoc:
and assumes the span until the first dot is the summary. Sadly, this doesn't work with links - which are quite common.
Solutions
We could try a bit harder and not just scan for the first . but instead look for the first .followed by a space or a newline. This should at least improve the heuristic by quite a bit.
The text was updated successfully, but these errors were encountered:
Context
Spoon offers a
getShortDescription()
method inCtJavadoc
. This method should (I guess) return the short Javadoc the standard HTML Doclet displays in the method table. The javadoc tool description (e.g. here) says:Problem statement
Sadly the current handling is a bit too simplistic (I heard an issue is only complete once it includes images, so here goes nothing):


As you can see the javadoc is cut off after
java.
. Spoon sees the Javadoc:and the Javadoc
and assumes the span until the first dot is the summary. Sadly, this doesn't work with links - which are quite common.
Solutions
We could try a bit harder and not just scan for the first
.
but instead look for the first.
followed by a space or a newline. This should at least improve the heuristic by quite a bit.The text was updated successfully, but these errors were encountered: