Fix issue old issue 301 (https://code.google.com/p/gwt-platform/issues/detail?id=301)

Create pull request from https://codereview.appspot.com/5988064/
Fix some checkstyle issues
Remove trailing spaces

to make checkstyle happy
Merge pull request #190 from bmoritz/issue301

Fix Issue 301 from https://code.google.com/p/gwt-platform/