OneStatementPerLine and Java 7 try-with-resources
"Lewis, Eric" <[email protected]> Wed, 3 Jul 2013 11:54:28 +0000
| Newsgroups | gmane.comp.java.audit.checkstyle.user |
|---|---|
| Message-ID | <F6110B5BB9C8EF409100FAC38728D5F3022CBFB3@ipipmsg018> |
Hi
First of all: If this has been discussed before, I'm sorry. I've looked around the mailing list archives and the issue tracker and haven't found anything.
We use the OneStatementPerLine check to keep Java code tidy. However, with the new Java 7 try-with-resources, it's usual to write several statements per line:
try (Reader xml = toXML(data); Reader xslt = createXSLReader(); WritableByteBuffer out = createOutputBuffer();) {
...
} catch (final IOException e) {
...
}
Is there a way to let OneStatementPerLine tolerate this? Or is this a bug or feature request?
Best regards,
Eric
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev