Fixed issue 582

git-svn-id: http://google-gson.googlecode.com/svn/trunk@1306 2534bb62-2c4b-0410-85e8-b5006b95c4ae