For a class, I am creating comments as shown below in my source code and it's displaying fine in the javadoc
/**
* <pre>
* This is className
* </pre>
*/
public class className
{
...
}
In the same way, I am giving comments to my method, but it's not getting displayed in the Method Detail section of the javadoc.
/**
* This is methodName
*/
private static String methodName(String line)
{
...
}
Could you please help me with this.
Why aren't private methods being shown in the resulting HTML file?
By default, the javadoc tool does not include private methods. To include them, run javadoc with the "-private" option.
I did as per given, but still the resulting HTML file does not contain private methods. Could anyone please help me with this.