Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 272
  • Last Modified:

Javadoc output

How can I avoid having <full> class names for standard classes in my javadocs?

E.g.

public java.sql.Connection connect(int type)              or
public java.lang.String info()

etc



0
piou
Asked:
piou
1 Solution
 
girionisCommented:
 You cannot.

  A workaround is to not put them in a package. Just put them in the root of your classpath.
0
 
Mayank SAssociate Director - Product EngineeringCommented:
Personally, I would prefer to have the full-names. Some class-names are duplicated in packages, like List, Date, etc.
0
 
sciuriwareCommented:
And you never can with the names listed because you can't reposition them.

At the other hand, enjoy it that the difference is shown with (e.g.) java.util.Date vs. java.sql.Date
And you'll be happy to distinguish between SUN's and yours when the classname is equal too .....
;JOOP!
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now