复用 Gson 对象

This commit is contained in:
juntao
2022-04-06 16:21:18 +08:00
parent 119f304e2f
commit 0803e61828
14 changed files with 29 additions and 37 deletions

View File

@ -363,7 +363,7 @@ public class MessageDetailFragment extends NormalFragment implements OnCommentCa
cacheObject.put("parent", cacheParent);
}
CommentEntity commentEntity = new Gson().fromJson(cacheObject.toString(), CommentEntity.class);
CommentEntity commentEntity = GsonUtils.fromJson(cacheObject.toString(), CommentEntity.class);
if (mConcernEntity != null) {
adapter.addNormalComment(commentEntity);
}