Removed unused code

Removed unused local variables and unused method parameters.
Replaced final fields with constants
Removed private constructors to allow instantiation
Removed unnecessary null checks before instanceof's
Decreased visibility of attributes (where possible)
Prevented instantiation of utility classes

Added private no-arg constructors to utility classes to prevent instantiation.
Renamed variable which hid a field
Renamed classes to prevent shadowing interfaces
Finalized utility classes
Replaced trailing comments with descriptive method names
Made inner classes static
Converted long anonymous classes to inner classes
Added default case to switch statements
Removed magic strings