Renamed inner class in Java file to avoid confusion with an unrelated class.
Removed dead store from Java file because value never used.
Removed not needed import statements from Java file.
Removed not needed casts from Java file.
Corrected spelling in header files.