javadoc

Documenting use of EJB3 annotations within a code base

Hey, We have a large code base and I want to generate specific reports on the usage of EJB3 annotations within the code base. The simplest use case is to generate a HTML/PDF report with details of all classes/methods that use the EJB3 security annotations. The goal of this document is to allow non developers to simply review which inter...

Automatic @since javadoc tag for releases

Is there a tool to automatically add the @since tag to all elements when I want to have a release version? So let's say I have a bunch of methods and my base system is working now, so I decide to release it as version 0.1.0 What I want now is a tool that searches for every missing @since tag and adds it accordingly. I'm using Eclipse ...

javadoc location in for Java ME?

Using Eclipse 3.5 and the plugin for mtj. Where can I find the Javadoc location for Java ME? How can I set the Javadoc location in Eclipse? I am using motodev sdk and also installed a mtj as Eclipse plugins. ...

Doxygen javadoc-style tag description spanning multiple lines

In a C++ project I'm using doxygen and the javadoc style for documentation. I'm fairly new to javadoc and am not sure whether this type of thing is valid. /** * ...stuff... * @return foo foo foo foo foo. Foo foo * foo foo foo foo foo. */ i.e. the information for what is being returned (and my question applies to all tags) needs to...

javadoc Any nice way to specify out and in parameters?

Hi everyone, I'm writing some javadoc, and was wondering if anyone has a nicer way to emphasize an out parameter. Im currently doing this (pretty straightforward) /** * @param cl (IN Parameter) description here <br/> * @param nodes (OUT Parameter) description here <br/> * @param holotypes (OUT Parameter) description her...

Eclipse no longer completing my javadocs with params/return tags.

I started a new project this afternoon and now that I've decided to write some comments, the javadocs are acting weird. I've tried resetting the perspective, but no dice. Any tips to solve this? ...

Eclipse won't load my javadocs

Hi all, I'm trying to create a SWT application in eclipse. I've followed the instructions and loaded the org.eclipse.swt project to my workspace, and made it a dependency of my project by adding it to my build path. However i cannot see the javadoc when i'm referencing the SWT libraries. I tried extracting the 'src.zip' into the org.ec...

How do I avoid specifying the defaulAuthor element during javadoc creation

How do I avoid specifying the defaulAuthor element during javadoc creation using the javadoc plugin. I don't want the author element, since the javadocs will be shipped to customers. ...

How to see javadoc for annotations in Android SDK ?

In "Documentation for Android SKD, API 8", the javadoc for class android.test.InstrumentationTestRunner mentions command-line options for "small", "medium", and "large" tests without explaining how one would define tests as being of those sizes. A clue arrives later in the description in the form of a link to the annotation android.test....

How to include Hibernate Javadoc in NetBeans?

In netbeans I was looking for a hibernate javadoc option (the code completion is working properly but I was looking for the description of the functions). I got one JAR file for Hibernate Javadoc : hibernate-3.2.2.ga-javadoc.jar but couldn't find a way to include this and make it work in NetBeans. I included the jar file in the Javadoc...

Eclipse javadoc coverage plugin

Hi there, i want to find out what classes need some javadoc love in my project. Is there a plugin for eclipse (or a standalone app) that would tell me what methods don't have a javadoc yet and perhaps even tells me if some are wrong (parameters changed etc). This is more or less the last plugin i need to create great code :D thx in adva...

What is the general rule for attributing code to a certain author

Usually many folks contribute to the an application development process (say a java / j2ee project). Sometimes a single person (say [email protected]) is responsible writing the code for a certain file or certain other folks might have changed the code. Do you attribute author information on top of the file for any user who makes a modificati...

Documenting getters and setters

For simple getters/setters, like the one below, what's the best way to document it? public float getPrice() { return price; } I'm pretty strict about coding standards, so my IDE warns me about any undocumented public/protected methods. Option 1: /** * Get the price field. * * @return */ Option 2: /** * @return Price */...

JavaDoc editor for Eclipse to create formatted text

im looking for a small plugin which let me create formated javadoc. at the moment im doing it with word (or http://tinymce.moxiecode.com/examples/full.php ) and save the text as a html file which then can be used but i think there must be a easier solution to create nice looking java doc.. ...

Doxygen for jsp pages?

Hi I need to document a (fairly) large project in java + jsp (1.0... don't get me start). For the middle tier (all .java classes) I just used doxygen to generate .html and .pdf documents, but my chief asked me to document and integrate the documentation of .jsp pages. AFAIK not doxygen nor javadoc are directly suitables for this job. ...

How can a method's Javadoc be copied into other method's Javadoc?

I know that there is @inheritDoc, but it's only for methods which override others. I have several classes with many delegate methods (which do not override others). Can their Javadoc be "inherited" (more exactly: copied)? /** here I need the copy of wrappedMethod's Javadoc */ public void delegateMethod(Object param){ innerSomething....

With the javadoc target in Apache Ant, is it possible to make all external links open in a new window

The Apache Ant javadoc target allows a <link> attribute to link to external javadocs. I would like these javadocs to open in a new window (like target="_blank"), but the link attribute doesn't accept a <target> attribute that would allow me to do something like this. Is there some other way to do this apart from manually editing the link...

Grails: Alternatives to Grails Doc?

The documentation created by running grails doc is not completely satisfactory in my eyes. For example, actions in controllers appear as properties in the documentation, though I would wish the have an extra section to separate actions from actual properties (Strings etc.). Are there any tools that operate on JavaDoc-like comments and g...

How to Handle throws clause in Java Exception Handling?

I have class A in which I have a method openfileConnec(). It was written like the below: public void openfileConnec() throws Exception { //code for opening a file } Now I come to class B where I will call this method like the below: class B { try { openfileConnect() } catch(Exception e) { } } I was aske...

Javadoc: package.html or package-info.java

When trying to create package level Javadoc comments, whats the preferred method? What do you do? Package-info.java Pros Newer Cons Abuse of a class - Classes are for code, not for only comments Package.html Pros HTML extension means its not code Syntax highlighting in IDE's/text editors Cons None? For me, I've always ...