質問

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