I recently rolled back this edit because the editor "fixed" OP's original code by adding braces around several statements of a Java if
statement. It was the lack of braces that was causing OP's problem (a syntax error at the else
branch). Then I left a comment on the question directed at the editor.
When we edit a question, we can add an "edit summary" that explains what was done and why. It seems to me that it would be a nice feature to be able to leave a similar kind of note tied to a rollback. The "rollback summary" (if provided) could be sent to the inbox of each editor whose edit was undone by the rollback. Leaving a note in the comment thread (as I did) seems to me to be a kind of clutter, because the comment is not relevant to the question, but to an edit that is no longer part of the question.