i configured the eclipse code formatter to display an empty bl开发者_如何学编程ock'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.
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.
精彩评论