Community
Participate
Working Groups
HEAD Add a Javadoc compiler option to (not) report missing tags for method type parameters, e.g. COMPILER_PB_MISSING_JAVADOC_TAGS_METHOD_TYPE_PARAMETERS with default: "disabled". In method declarations, type parameters are just placeholders and very rarely have a better description than just "type parameter". I didn't find even a single documented type parameter in the JDK. Type parameters of types have a much broader scope, so it makes sense to document those (although they're typically boilerplate like "the type of the elements")
(In reply to comment #0) > HEAD > > Add a Javadoc compiler option to (not) report missing tags for method type > parameters, e.g. COMPILER_PB_MISSING_JAVADOC_TAGS_METHOD_TYPE_PARAMETERS with > default: "disabled". > > In method declarations, type parameters are just placeholders and very rarely > have a better description than just "type parameter". I didn't find even a > single documented type parameter in the JDK. Markus, can you please attach a testcase with the new warning as it should be when the option is enabled? Thanks! And I believe this would be on the lines of COMPILER_PB_MISSING_JAVADOC_TAGS_OVERRIDING?
Created attachment 176704 [details] test project Here's a test project with the required Javadoc compiler settings. Note that I don't request a new warning -- I want to disable the existing warning for method type parameters. > And I believe this would be on the lines of > COMPILER_PB_MISSING_JAVADOC_TAGS_OVERRIDING? Exactly.
Created attachment 179869 [details] proposed fix v1.0 + regression tests Fix introducing the new option JavaCore.COMPILER_PB_MISSING_JAVADOC_TAGS_METHOD_TYPE_PARAMETERS. Also updated the jdt doc. Markus, please review. Thanks
Looks mostly good and works fine. The Javadoc of JavaCore#COMPILER_PB_MISSING_JAVADOC_TAGS_METHOD_TYPE_PARAMETERS needs 2 changes: - Javadoc should be capitalized - "for the type parameter" should be "for a type parameter" Typos in jdt_api_options.htm: - javadoc -> Javadoc - compliance is 1.6 or greater -> 1.5
Created attachment 180330 [details] released patch Released in HEAD for 3.7M3.
Fixed
Verified for 3.7M3 in I20101025-1800