Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 314406 - Javadoc for some APIs have warnings
Summary: Javadoc for some APIs have warnings
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Doc (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.6 RC3   Edit
Assignee: Raksha Vasisht CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-26 04:02 EDT by Raksha Vasisht CLA
Modified: 2010-05-27 04:31 EDT (History)
2 users (show)

See Also:


Attachments
Patch (22.54 KB, patch)
2010-05-26 04:02 EDT, Raksha Vasisht CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Raksha Vasisht CLA 2010-05-26 04:02:48 EDT
Created attachment 169940 [details]
Patch

HEAD

The Javadoc for a few APIs introduced in 3.6 have some warnings and spelling problems.

Attaching the patch.
Comment 1 Dani Megert CLA 2010-05-26 05:25:31 EDT
- Some changes were in 'org.eclipse.jface' (we only own jface.text). They looked
  good though hence, committed to HEAD.

There are some minor issues with the remaining changes:
- NewTypeWizardPage.constructCUContent(ICompilationUnit, String, String)
  ==> the comment is not accurate (there are two reasons for the exception)
- java -> Java
- no empty lines between tags

Please fix that and commit to HEAD.
Comment 2 Raksha Vasisht CLA 2010-05-26 09:44:33 EDT
(In reply to comment #1)
> There are some minor issues with the remaining changes:
> - NewTypeWizardPage.constructCUContent(ICompilationUnit, String, String)
>   ==> the comment is not accurate (there are two reasons for the exception)
> - java -> Java
> - no empty lines between tags
> 
> Please fix that and commit to HEAD.

Fixed and Released to HEAD.
Comment 3 Deepak Azad CLA 2010-05-26 13:30:09 EDT
I wonder what is the use of a javadoc such as - "@param selection the java text selection" - get rid of the description expected warning? :)

The parameter is declared as 'selectionChanged(JavaTextSelection selection)' and looking at the declaration I can see it is a java text selection, the javadoc does not provide any extra information.

It is not only this patch here, this is something that generally bothers me. If getting rid of the warning is the only reason I would probably disable/suppress the warning instead of adding meaningless javadoc. Or are there some good reasons for this kind of javadoc that I am missing?
Comment 4 Dani Megert CLA 2010-05-27 03:40:28 EDT
Very often it does add additional value but I agree sometimes it does not. Since there's no special flag/tag for parameters that don't need additional comment, we simply add it everywhere. Note that you can't just ignore the warning for one specific parameter.
Comment 5 Dani Megert CLA 2010-05-27 04:04:21 EDT
Verified that we no longer have Javadoc warnings in any of our APIs.
Comment 6 Deepak Azad CLA 2010-05-27 04:29:56 EDT
(In reply to comment #4)
> Very often it does add additional value but I agree sometimes it does not.
> Since there's no special flag/tag for parameters that don't need additional
> comment, we simply add it everywhere. Note that you can't just ignore the
> warning for one specific parameter.
I would probably leave the warning as it is (or figure out some other way to get rid of it). But I do not feel too strongly either way.
Comment 7 Dani Megert CLA 2010-05-27 04:31:46 EDT
>I would probably leave the warning as 
This is not an option ;-)