From: SourceForge.net <no...@so...> - 2008-11-01 20:36:58
|
Bugs item #2214635, was opened at 2008-11-01 20:36 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=2214635&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: User interface Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: indent error on single statement blocks Initial Comment: mj...@cs... Nested single-statement blocks don't indent properly. Witness the following code: // Returns true if the given board contains the given string. // Tests every possible starting location. public static boolean contains(char[][] board, String s) { int rows = board.length; int cols = board[0].length; for (int row=0; row<rows; row++) for (int col=0; col<cols; col++) if (contains(board,s,row,col)) return true; return false; } Which should indent as public static boolean contains(char[][] board, String s) { int rows = board.length; int cols = board[0].length; for (int row=0; row<rows; row++) for (int col=0; col<cols; col++) if (contains(board,s,row,col)) return true; return false; } DrJava Version : drjava-20080828-r4664 DrJava Build Time: 20080828-1639 running on Mac OS X 10.5.5 JDK 5.0_16 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=2214635&group_id=44253 |