Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: stable reformating for method invocation with only comments #457

Conversation

clementdessoude
Copy link
Contributor

What changed with this PR:

Example

// Input
public static final List<Object> XXXXXXXXXXXXXXXXXX = Collections.unmodifiableList(
    Arrays.asList(// a
                  // b
                  // c
                  // d
    )
);
public static final List<Object> XXXXXXXXXXXXXXXXXX = Collections.unmodifiableList(
    Arrays.asList(// a
                  // b
                  // c
                  // d
    /*e*/)
);

// Before PR

public static final List<Object> XXXXXXXXXXXXXXXXXX = Collections.unmodifiableList(
    Arrays.asList(// b // a
    // c
    // d
    )
);

// After PR
public static final List<Object> XXXXXXXXXXXXXXXXXX = Collections.unmodifiableList(
  Arrays.asList( // a
    // b
    // c
    // d
  )
);
public static final List<Object> XXXXXXXXXXXXXXXXXX = Collections.unmodifiableList(
  Arrays.asList( // a
    // b
    // c
    // d
    /*e*/
  )
);

Relative issues or prs:

Fix #443

@clementdessoude clementdessoude merged commit aa99a4e into jhipster:main Mar 14, 2021
@clementdessoude clementdessoude deleted the fix/stable-reformating-only-comments branch June 18, 2021 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Formatting not stable
1 participant