From: SourceForge.net <no...@so...> - 2004-08-18 21:22:33
|
Bugs item #1011806, was opened at 2004-08-18 17:22 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=1011806&group_id=44253 Category: Definitions (source editor) Group: Annoying Status: Open Resolution: None Priority: 5 Submitted By: Fernando Pereira (fcnpereira) Assigned to: Nobody/Anonymous (nobody) Summary: Incorrect indentation of nested if Initial Comment: Nested if statements without braces are auto-indented incorrectly: class Test { void test(int i) { int j = -1; if (i > 0) if (i > 1) j = 3; else j = 5; } } The "else" should align with the inner "if" following the dangling- else rule of Java syntax. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=1011806&group_id=44253 |