Removed trailing whitespace from code examples for checkstyle
compliance.