Search code examples
javajavadoc

How to make JavaDoc work with line comments?


Can JavaDoc be configured so that it works on /// … comments instead of /** … */?

I really don’t like block comments (especially non-nesting ones) and I’d rather jump through 100 hoops and hurdles than to just use them.


Solution

  • No, Javadoc is created by following a particular semantics and that is why the javadoc tool doesn't detect the // comments, rather it works with /** */.