code snippet had either 1 too many brace closure (if was just the begining of the method and remainder was removed for brevity) or the close parenthesis was misplaced.