[#596] Format code using new Eclipse settings

* Remove unused imports
* Reorder imports
* Adds `@Override`, `@Deprecated`
* Remove unnecessary casts