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/712 handle comments with static invocations #713

Conversation

clementdessoude
Copy link
Contributor

What changed with this PR:

Always break in method invocations if last dot has leading comments

Example

// Input
class Main {

  public static void main(String[] args) {
    return MyClass
        // comment
        .doSomething();
  }
}

// Previous Output
class Main {

    public static void main(String[] args) {
        return MyClass// comment
        .doSomething();
    }
}

// Output
class Main {

  public static void main(String[] args) {
    return MyClass
        // comment
        .doSomething();
  }
}

Relative issues or prs:

Fix #712

@clementdessoude clementdessoude merged commit b742832 into jhipster:main Jan 20, 2025
7 checks passed
@clementdessoude clementdessoude deleted the fix/712-handle-comments-with-static-invocations branch January 20, 2025 20:49
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 with comment between class and static function call
1 participant