Fix formatting placeholders

(cherry picked from commit 93ce371191bfabf953f9a3d4f5196ca867320cb5)
Add a reference to JSONObject#quote(String)

(cherry picked from commit 9575f0d93901b7163a46c2ea38f43f135ecd7d50)
Remove usage of JSR305 annotations (@Nullable) and no-op override of #equals(Object)

(cherry picked from commit 51d88673a7c67de5270ff3a8fe14f70691bf89fa)
Fix formatting placeholders

(cherry picked from commit 93ce371191bfabf953f9a3d4f5196ca867320cb5)
Fix transformation of an Enumeration to Array - we need to pass the type of the array we want to be constructed, otherwise it will be Object[]

(cherry picked from commit 4f1fd55b437322b8719052ed0abe24cc35a82f08)
Add override of hashCode(). There is such for #equals(Object) already

(cherry picked from commit 900d5a806550d7674a356c866521d6648bff3c5d)