Update Gson api to 2.2.4
Merge pull request #564 from dipold/GsonAttack

Update Gson api to 2.2.4
docs and changing method to protected