getActivity / GsonFactory

Gson 解析容错框架,愿从此再无 Json 解析报错
Apache License 2.0
667 stars 66 forks source link

BigDecimalTypeAdapter 有BUG #7

Closed op123355569 closed 3 years ago

op123355569 commented 3 years ago

String result = in.nextString(); if (result == null || "".equals(result)) { return new BigDecimal(0); } return new BigDecimal(in.nextString());

return new BigDecimal(in.nextString()); 应改为: return new BigDecimal(result);

getActivity commented 3 years ago

已经纠正,多谢小伙子的提醒

getActivity commented 3 years ago

gson-factory.aar.zip

getActivity commented 3 years ago

这个 Bug 会在下个版本修复好,小伙子你要是着急用的话可以先用这个 aar 包

getActivity commented 3 years ago

小伙子,问题已经修复,更新到 5.0 版本即可

op123355569 commented 3 years ago

小伙子,问题已经修复,更新到 5.0 版本即可

好的,谢啦