History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-18051
Type: Bug Bug
Status: Open Open
Assignee: Unassigned
Reporter: Oleg Estekhin
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

regression in the code reformatting for the annotation values of array type

Created: Thursday 13:50   Updated: Thursday 13:50
Component/s: Code Formatting and Code Style

Build: 7,821
Severity: Medium


 Description  « Hide
In the 7821 build of 7.0.4 eap
package formatting;

public class EnumInAnnotationFormatting {

    public enum TheEnum {

        FIRST,
        SECOND,
        THIRD,

    }

    public @interface TheAnnotation {

        TheEnum[] value();

        String comment();

    }


    @TheAnnotation(value = {TheEnum.FIRST,
            TheEnum.SECOND}, comment = "some long comment that goes longer that right margin 012345678901234567890")
    public class Test {

    }

}

The expected formatting (like in previous versions).

package formatting;

public class EnumInAnnotationFormatting {

    public enum TheEnum {

        FIRST,
        SECOND,
        THIRD,

    }

    public @interface TheAnnotation {

        TheEnum[] value();

        String comment();

    }


    @TheAnnotation(value = {TheEnum.FIRST, TheEnum.SECOND}, comment = "some long comment that goes longer that right margin 012345678901234567890")
    public class Test {

    }

}

In both cases the code style/wrapping options are all set to "do not wrap", except for "class/method/field annotations"="wrap always" and "enum constants"="chop down if long"



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.