javavscode icon indicating copy to clipboard operation
javavscode copied to clipboard

Formatter doesn't support `{@return foo}`

Open anthonyvdotbe opened this issue 1 year ago • 2 comments

The formatter messes up Javadoc like {@return foo}.

For example formatting this:

    /**
     * {@return foo}
     */
    String bar() {
        return null;
    }

Actual:

    /**
     * {
     *
     * @return foo}
     */
    String bar() {
        return null;
    }

Expected:

    /**
     * {@return foo}
     */
    String bar() {
        return null;
    }

anthonyvdotbe avatar Jul 15 '24 17:07 anthonyvdotbe

created a issue in netbeans related to this bug

naren2605 avatar Aug 06 '24 02:08 naren2605

created netbeans pr for this issue

naren2605 avatar Aug 06 '24 11:08 naren2605

verification of fix

before formatting bar method: image

after formatting bar method:

image

naren2605 avatar Aug 19 '24 07:08 naren2605