Christian Lutz
Christian Lutz

Reputation: 538

Eclipse code formatter: spacing in empty blocks

i configured the eclipse code formatter to display an empty block's brackets in one line. Now my projects checkstyle configuration requires spacing between these brackets. Is it possible to tell Eclipse to do this.

e.g.: emptyMethod() { }

Thanks for any help.

Upvotes: 0

Views: 793

Answers (1)

VivaceVivo
VivaceVivo

Reputation: 931

As far as I know there is no way to put a space between the braces with the Eclipse formatter. As a workaround I removed the "WhitespaceAround" rule from the checkStyle plugin configuration.

Upvotes: 2

Related Questions