How to disable reformat for Java empty bracket?

Answered

Hello, I have a question that is similar to https://intellij-support.jetbrains.com/hc/en-us/community/posts/360006889000-How-to-disable-reformat-for-JS-empty-bracket- 
I have this declaration:

Wrapper<Void, String> pippo = buildGet(Constants.PIPPO, new TypeReference<>() {});

If I reformat the code, I get this

Wrapper<Void, String> pippo = buildGet(Constants.PIPPO, new TypeReference<>() {
});

Is there an option to NOT reformat in such case?
Thank you

0
1 comment

There are a number of related options under Settings/Preferences | Editor | Code Style | Java | Wrapping and Braces settings:

0

Please sign in to leave a comment.