SlickEdit Community

SlickEdit Product Discussion => SlickEdit® => Topic started by: Tree on July 13, 2017, 02:25:52 PM

Title: javadoc html escaping for generic types
Post by: Tree on July 13, 2017, 02:25:52 PM
Is there a way to get the generated javadoc to use html escaping for generic return and argument types?

Currently, if I have a method that returns a List<String> the generated javadoc has:
     * @return List<String>

But this is illegal javadoc. The less than and greater than characters need to be escaped. It should look like:
     * @return List&lt;String&gt;

The expansion currently uses: %\r for the return type. Is there some other expansion that could be used to produce legal javadoc?

Title: Re: javadoc html escaping for generic types
Post by: Dennis on July 18, 2017, 02:41:03 PM
That is a good suggestion.  I am filing a bug report to fix this in the future.