Bugs item #2734937, was opened at 2009-04-05 12:48
Message generated for change (Tracker Item Submitted) made by mgricken
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=438935&aid=2734937&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: Definitions (source editor)
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Mathias Ricken (mgricken)
Assigned to: Nobody/Anonymous (nobody)
Summary: Indent: Label leads to incorrect identation
Initial Comment:
The label checkforDraw: in this example leads to incorrect indentation of the first for loop and the code after the last closing brace (we don't want to indent after a label, do we?)
// check for a draw
/** flag that is true if all squares are occupied with a player's token */
boolean allNonEmpty = true;
checkForDraw:
for (int i = 0; i < nRows; i++) {
for (int j = 0; j < nCols; j++) {
if (cells[i][j] == EMPTY) {
allNonEmpty = false;
break checkForDraw;
}
}
}
if (allNonEmpty) state = DrawState.Singleton;
return;
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=438935&aid=2734937&group_id=44253
|