|
From: SourceForge.net <no...@so...> - 2011-09-05 18:21:50
|
Bugs item #3404389, was opened at 2011-09-05 13:21 Message generated for change (Tracker Item Submitted) made by mgricken You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=3404389&group_id=44253 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Mathias Ricken (mgricken) Assigned to: Nobody/Anonymous (nobody) Summary: Java 7 Indention for Try-with-Resources Initial Comment: Try-with-resources is indented badly if the auto-closables are split into more than one line. The body of the try construct is indented too deeply. // badly indented public static void tryWithResources2(String f) { try (InputStream is = new FileInputStream(new File(f)); InputStream is2 = new FileInputStream(new File(f))) { is.read(); } catch(IOException e) { e.printStackTrace(); } } ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=3404389&group_id=44253 |