Skip to content

Annotation attributes are not being wrapped #78

Closed

Description

@OlgaMaciaszek

After running the formatter plugin, the following code (with new line after comma):

@SpringBootTest(classes = RibbonClientConfigurationIntegrationTests.TestLBConfig.class,
		properties = "test.ribbon.ServerListRefreshInterval=999")

will be converted to (with no new line):

@SpringBootTest(classes = RibbonClientConfigurationIntegrationTests.TestLBConfig.class, properties = "test.ribbon.ServerListRefreshInterval=999")

This is problematic, taken into account that we usually want to stick to a certain line length limit.

Activity

  1. philwebb commented on Feb 7, 2019

    @philwebb
    Contributor

    It looks like the underlying Eclipse formatter can wrap annotations so we probably just need to change an option in https://github.com/spring-io/spring-javaformat/blob/master/spring-javaformat/spring-javaformat-formatter/src/main/resources/io/spring/javaformat/formatter/formatter.prefs

    screen shot 2019-02-07 at 10 30 53 am

  2. changed the title [-]New lines between annotation arguments are being removed[/-] [+]Annotation attributes are not being wrapped[/+] on Mar 26, 2019
  3. added this to the 0.0.x milestone on Mar 26, 2019
  4. modified the milestones: 0.0.x, 0.0.8 on Mar 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions