Replace gson with org.json.JSONObject api. Note that android includes org.json in the framework, so if deploying keyczar to android don't bundle org.json. Deleted unused fields and methods on some enums. In general, I tried to be forgiving while converting objects to JSON (as that's how toString() is often implemented, which should not crash since we need that for debugging), but strict while parsing JSON.
Remove all java logging.
Tests still pass. :-)
Note: previously, errors during JSON parsing threw unchecked gson exceptions. Now we throw RuntimeExceptions wrapping checked JSONException.
I don't know how to test Eclipse/Maven project integration.
Tests still pass. :-)
Note: previously, errors during JSON parsing threw unchecked gson exceptions. Now we throw RuntimeExceptions wrapping checked JSONException.
I don't know how to test Eclipse/Maven project integration.