Permalink
Browse files

simplify StatusJSONImpl

  • Loading branch information...
1 parent 807fd09 commit 9d045ac8e0004ee9cb00c8563ebf9e9a7b68db77 @yusuke committed Dec 8, 2012
Showing with 2 additions and 7 deletions.
  1. +2 −7 twitter4j-core/src/main/java/twitter4j/internal/json/StatusJSONImpl.java
@@ -163,13 +163,8 @@ private void init(JSONObject json) throws TwitterException {
urlEntities = urlEntities == null ? new URLEntity[0] : urlEntities;
hashtagEntities = hashtagEntities == null ? new HashtagEntity[0] : hashtagEntities;
mediaEntities = mediaEntities == null ? new MediaEntity[0] : mediaEntities;
- try {
- text = HTMLEntity.unescapeAndSlideEntityIncdices(json.getString("text"), userMentionEntities,
- urlEntities, hashtagEntities, mediaEntities);
- } catch (JSONException jsone) {
- throw new TwitterException(jsone);
- }
-
+ text = HTMLEntity.unescapeAndSlideEntityIncdices(json.getString("text"), userMentionEntities,
+ urlEntities, hashtagEntities, mediaEntities);
if (!json.isNull("current_user_retweet")) {
currentUserRetweetId = json.getJSONObject("current_user_retweet").getLong("id");
}

0 comments on commit 9d045ac

Please sign in to comment.