Remove unnecessary casts
Remove unnecessary semicolons
Add missing @Override annotations
Remove dead code