Program: 174275
Project: 174275
Buggy source:
@Override public void onResponse(Call call,Response response,String tag){
  if (response.body() instanceof RequestGiftOutput) {
    setCancelRequestBtn();
    Snackbari.showS(mRequestLay,"String_Node_Str");
  }
 else   if (response.body() instanceof Gift) {
    gift=(Gift)response.body();
    setInfo();
    giftStatus=gift.status;
    if (gift.userId.equals(AppController.getStoredString(Constants.USER_ID))) {
      setEditDeleteBtn();
    }
switch (gift.status) {
case GiftStatus.REJECTED_BY_ADMIN:
      showRejectedDialog();
    mDetailTitleTv.setText("String_Node_Str" + gift.title);
  break;
case GiftStatus.PUBLISHED:
if (!gift.userId.equals(AppController.getStoredString(Constants.USER_ID))) {
  setRequestBtn();
}
break;
case GiftStatus.DONATED_TO_ME:
setCallSmsBtn();
break;
case GiftStatus.DONATED_TO_SOMEONE_ELSE:
hideAllBottomBtns();
mDetailTitleTv.setText("String_Node_Str" + gift.title);
break;
case GiftStatus.I_SENT_MY_REQUEST_FOR_IT:
setCancelRequestBtn();
break;
case GiftStatus.MY_REQUEST_REJECTED:
hideAllBottomBtns();
mDetailTitleTv.setText("String_Node_Str" + gift.title);
break;
}
if (gift.bookmark) {
mBookmarkIc.setImageResource(R.mipmap.ic_action_action_bookmark);
mBookmarkIc.setOnClickListener(removeFromWishList);
}
 else {
mBookmarkIc.setImageResource(R.mipmap.ic_action_action_bookmark_outline);
mBookmarkIc.setOnClickListener(addToWishList);
}
mBookmarkIc.setVisibility(View.VISIBLE);
}
 else if (response.body() instanceof ResponseBody) {
if (tag.equals(RequestName.SendRequestGift)) {
setCancelRequestBtn();
}
 else if (tag.equals(RequestName.DeleteGift)) {
Toasti.showS("String_Node_Str");
finish();
}
 else if (tag.equals(RequestName.DeleteMyRequest)) {
setRequestBtn();
}
 else if (tag.equals(RequestName.Bookmark)) {
}
 else if (tag.equals(RequestName.ReportGift)) {
Toasti.showS("String_Node_Str");
}
}
}

Fixed version (ground truth):
@Override public void onResponse(Call call,Response response,String tag){
  if (response.body() instanceof RequestGiftOutput) {
    setCancelRequestBtn();
    Snackbari.showS(mRequestLay,"String_Node_Str");
  }
 else   if (response.body() instanceof Gift) {
    gift=(Gift)response.body();
    setInfo();
    giftStatus=gift.status;
    if (gift.userId.equals(AppController.getStoredString(Constants.USER_ID))) {
      setEditDeleteBtn();
    }
switch (gift.status) {
case GiftStatus.REJECTED_BY_ADMIN:
      showRejectedDialog();
    mDetailTitleTv.setText("String_Node_Str" + gift.title);
  break;
case GiftStatus.PUBLISHED:
if (!gift.userId.equals(AppController.getStoredString(Constants.USER_ID))) {
  setRequestBtn();
}
break;
case GiftStatus.DONATED_TO_ME:
setCallSmsBtn();
break;
case GiftStatus.DONATED_TO_SOMEONE_ELSE:
hideAllBottomBtns();
mDetailTitleTv.setText("String_Node_Str" + gift.title);
break;
case GiftStatus.I_SENT_MY_REQUEST_FOR_IT:
setCancelRequestBtn();
break;
case GiftStatus.MY_REQUEST_REJECTED:
hideAllBottomBtns();
mDetailTitleTv.setText("String_Node_Str" + gift.title);
break;
}
if (gift.bookmark) {
mBookmarkIc.setImageResource(R.mipmap.ic_action_action_bookmark);
mBookmarkIc.setOnClickListener(removeFromWishList);
}
 else {
mBookmarkIc.setImageResource(R.mipmap.ic_action_action_bookmark_outline);
mBookmarkIc.setOnClickListener(addToWishList);
}
mBookmarkIc.setVisibility(View.VISIBLE);
}
 else if (response.body() instanceof ResponseBody) {
if (tag.equals(RequestName.SendRequestGift)) {
setCancelRequestBtn();
}
 else if (tag.equals(RequestName.DeleteGift)) {
Toasti.showS("String_Node_Str");
finish();
}
 else if (tag.equals(RequestName.DeleteMyRequest)) {
setRequestBtn();
}
 else if (tag.equals(RequestName.Bookmark)) {
}
 else if (tag.equals(RequestName.ReportGift)) {
Snackbari.showS(mBookmarkIc,"String_Node_Str");
}
}
}