Community
Participate
Working Groups
The IDOMMethod#getReturnType() method comment states: <pre> /** * Returns the return type name, or <code>"void"</code>. * Returns <code>"void"</code> for constructors. * The syntax for return type name corresponds to ReturnType in * MethodDeclaration (JLS2 8.4). Names are returned as they appear in the source * code; for example: <code>"File"</code>, <code>"java.io.File"</code>, * <code>"int[]"</code>, or <code>"void"</code>. * * @return the return type */</pre> Unfortunately, the model does not return "void" for constructors, it returns null. Either the model should be changed to return "void" or the comment should be changed to indicate that the model returns null for constructors.
Please ignore the <pre></pre> tags. I added them because I was worried the HTML would change how the Javadoc read.
Shoud document the null case.
I changed the java doc to be: /** * Returns the return type name, or <code>null</code>. * Returns <code>null</code> for constructors. * The syntax for return type name corresponds to ReturnType in * MethodDeclaration (JLS2 8.4). Names are returned as they appear in the source * code; for example: <code>"File"</code>, <code>"java.io.File"</code>, * <code>"int[]"</code>, or <code>"void"</code>. * * @return the return type */ Looks good enough to me. Let me know if you want to release this version.
Released in HEAD.