I have a javadoc code block where I want to write a sample code that includes such common files:
public interface SomeInterface <T> { }
public interface SomeInterface extends SomeOtherInterface<T> { }
Here is my javadoc block:
public static JClassType findGenericType(JClassType implType, JClassType parentType) { ... }
Javadoc output:
Get the Generic Type T of a Type (Class/Interface) or extended/inherited Subtype:
public interface SomeInterface { }
public interface SomeInterface extends SomeOtherInterface { }
}
Parameters:
implType
parentType
Returns:
The output is missing a common parameter.
How can I get javadoc to display generics correctly?
source
share