WhitespaceBeforeArrayInitializer check false-positive on jagged array #386

Closed
mkordas opened this Issue Oct 30, 2015 · 1 comment

Projects

None yet

2 participants

@mkordas
Contributor
mkordas commented Oct 30, 2015

I consider the following code as correctly formatted:

int[][] nestedIntOneLine = new int[][] {{1}};

but violation Array initializer should have whitespace before is raised by WhitespaceBeforeArrayInitializer check.

I need to add space before second brace to make the check happy, but this doesn't look good:

int[][] nestedIntOneLine = new int[][] { {1}};
@mkordas mkordas added a commit to mkordas/sevntu.checkstyle that referenced this issue Oct 31, 2015
@mkordas mkordas Issue #386: Fix WhitespaceBeforeArrayInitializer for jagged arrays 51cf7b5
@romani romani added this to the 1.17 milestone Oct 31, 2015
@romani
Member
romani commented Oct 31, 2015

merged.

Scheduled to be in 1.17 for now at Nov 8th, is no new functionality merged I will release 1.16.X at that date.

@romani romani closed this Oct 31, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment