I have following class hierarchy. When I generate javadoc for subclass, the generated doc does not contain java doc comment for the method inherited from the super class.

public class SuperClass
{

  /**
   Something interesting.
  */
  public void SuperClassMethod() {

   }
...
}

public class SubClass extends SuperClass
{

}

I am generating docs for SubClass. The doc for the method from the SuperClass are empty.

有帮助吗?

解决方案

In enunciate.xml file, specify the following tag for the super class

<api-import class="com.superclassPackage.superClassName" />

This works for the case when superClass belongs to some other project as well.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top