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

Opening Braket in Construktor is not moved to the new line #273

Open
pmisko opened this issue Oct 4, 2024 · 0 comments
Open

Opening Braket in Construktor is not moved to the new line #273

pmisko opened this issue Oct 4, 2024 · 0 comments

Comments

@pmisko
Copy link

pmisko commented Oct 4, 2024

If the formating is different than expected:

  • make sure you are comparing with the same Eclipse version
  • provide a code example (both from Eclipse and from IntelliJ) and settings files

What steps will reproduce the issue?

Configuration file contains following setting:

The following test-code was not formatted corectly:

image

This only happens when the first line in constructor body contains a Mockito.when() method with parameters:

  1. with when() works correctly
  2. with when(anyParam) works incorrect

What is the expected result?
image

It seems that in the following code sample the formatting for the line with when is generally omitted:

current:
image

expected:
image

I noticed that when I remove the ending bracket of the class and put it back in, the formatting works correctly.

What happens instead?

Сonsider attaching a screenshot, screencast, or a code sample when it's hard to articulate the problem.

Paste information about IDE and OS (it can be copied from Help | About dialog).
IntelliJ IDEA Ultimate 2023.1.3

Please use triple backticks ``` before and after the stacktrace block.

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

No branches or pull requests

1 participant