Cleaned up code generation java library by dealing with the warnings