Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#466 about generics and parenthesis

open
nobody
Check (274)
5
2012-10-10
2007-06-30
Bartsimp
No

Hello, that's my question about generics.

The code:
private ArrayList < String > ls = new ArrayList < String >();

fails the checkstyle because "Whitespace Around: '>' is not followed by whitespace."

If I add the whitespace

private ArrayList < String > ls = new ArrayList < String > ();

fails the checkstyle because "Method Parameter Pad: '(' is preceded with whitespace."

Exists a solution?

Thanks in advance

Discussion