Sonar doesn't like do-whiles?