oracle / javavscode

Java platform support for Visual Studio Code for full featured Java development (edit-compile-debug & test cycle)
Apache License 2.0
231 stars 31 forks source link

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

Closed anthonyvdotbe closed 3 months ago

anthonyvdotbe commented 4 months ago

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;
    }
naren2605 commented 3 months ago

created a issue in netbeans related to this bug

naren2605 commented 3 months ago

created netbeans pr for this issue

naren2605 commented 3 months ago

verification of fix

before formatting bar method:

image

after formatting bar method:

image