Bug 43715 - Option to ignore unused imports
Summary: Option to ignore unused imports
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 3.0 M7   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-25 19:53 EDT by Adrian Newby CLA
Modified: 2004-01-29 06:48 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Newby CLA 2003-09-25 19:53:42 EDT
When writing Javadoc, the programmer must sometimes import or otherwise
reference an external class if they want to be able to link to its Javadoc. 
e.g. if you want to write this in Javadoc

{@link com.sun.security.auth.module.Krb5LoginModule}

and have Javadoc generate a hyperlink, then you need to include something like
this in your source, even thouogh the declaration is unnecessary for correct
compilation:

import com.sun.security.auth.module.Krb5LoginModule;

The options presented by the Quick fixer in this case are : "Remove import" and
"Organize imports".  What is really needed here is an additional "Ignore"
option, since this problem is likely to increase with large, heavily-documented
projects.
Comment 1 Dirk Baeumer CLA 2003-09-26 06:08:24 EDT
The compiler will know about these references in the future. 

Moving to JDT/Core for comments
Comment 2 Frederic Fusier CLA 2003-12-15 12:19:23 EST
References are now seen in Javadoc for @throws and @see tags when Javadoc 
option is activated. So this would fix the problem for these tags...

For embedded tags as {@link...}, this would be done when bug 48385 will be 
fixed.
Comment 3 Frederic Fusier CLA 2004-01-13 05:18:52 EST
Fixed as bug 48385 is now fixed.
Comment 4 Frederic Fusier CLA 2004-01-13 05:20:52 EST
Reopen to resolve it as duplicate...
Comment 5 Frederic Fusier CLA 2004-01-13 05:21:13 EST

*** This bug has been marked as a duplicate of 48385 ***
Comment 6 Frederic Fusier CLA 2004-01-13 05:22:22 EST
Ooops, duplicate is not right => reopen
Comment 7 Frederic Fusier CLA 2004-01-13 05:23:19 EST
Finally, correct answer is invalid after bug 48385 is fixed...