Menu

#1181 unused import false positive if used as parameter in javadoc only.

PMD-5.1.2
closed
PMD
3-Major
Bug
5.0.5
2015-02-02
2014-04-06
rei3ner
No

I use pmd 5.0.5 and have activated rule UnusedImports.

In my case i have imported
import eu.simuline.arithmetics.NMathContext;
which is used in a comment like this:

/**
 * R...
 * given by {@link NAltSeries#seqLn2mul3(NMathContext)}, 
 * ... 
 */

i.e. in a parameter only.
There has been some discussion about this kind of usage
but at the end, e.g. NAltSeries is usage and prevents alarm.
Seemingly not so if used as parameter like NMathContext.

Related

Issues: #1280

Discussion

  • Andreas Dangel

    Andreas Dangel - 2014-04-28
    • status: open --> accepted
    • Milestone: New Tickets --> PMD-Next
     
  • Andreas Dangel

    Andreas Dangel - 2014-04-30
    • status: accepted --> closed
    • assigned_to: Andreas Dangel
     
  • Andreas Dangel

    Andreas Dangel - 2014-04-30

    Will be fixed with the next PMD release.

     

Log in to post a comment.