Source:
<code>public String getColumnText(Object aObj, int aIndex) { if (aObj instanceof ChangeInfo) { ChangeInfo reviewSummary = (ChangeInfo) aObj; switch (aIndex) { case 0: Boolean starred = reviewSummary.isStarred(); return starred.toString(); case 1: return Integer.toString(reviewSummary.get_number()); case 2: return reviewSummary.getSubject(); case 3: String attribute = reviewSummary.getStatus().toString(); return attribute; case 4: return reviewSummary.getOwner().getName(); case 5: return reviewSummary.getProject(); case 6: String branch = reviewSummary.getBranch(); String topic = reviewSummary.getTopic(); if (topic != null && !topic.isEmpty()) { branch += " (" + topic + ")"; } return branch; case 7: { java.util.Date date = null; try { <START> date = formatTimeOut.parse(reviewSummary.getUpdated()); <END> } catch (ParseException e) { EGerritCorePlugin.logError(e.getMessage()); } if (date.before(Calendar.getInstance().getTime())) { return Utils.formatDate(reviewSummary.getUpdated(), shortFormatTimeOut); } else { return Utils.formatDate(reviewSummary.getUpdated(), formatTimeOut); } } case 8: { fCodeReviewState = Utils.verifyTally((CODE_REVIEW), reviewSummary.getLabels()); return EMPTY_STRING; } case 9: { fVerifyState = Utils.verifyTally((VERIFIED), reviewSummary.getLabels()); return EMPTY_STRING; } default: return EMPTY_STRING; } } return EMPTY_STRING; }</code><technical_language>web , is formats: 1- More year: Month day, year ex: Jan 10, 2015 2- today: Month day ex: 13 3- Today: hour:min AM/PM ex: 10:05 longer format, number 1 is shorten is in EGerrit</technical_language>

Target:
public String getColumnText(Object aObj, int aIndex) { if (aObj instanceof ChangeInfo) { ChangeInfo reviewSummary = (ChangeInfo) aObj; switch (aIndex) { case 0: Boolean starred = reviewSummary.isStarred(); return starred.toString(); case 1: return Integer.toString(reviewSummary.get_number()); case 2: return reviewSummary.getSubject(); case 3: String attribute = reviewSummary.getStatus().toString(); return attribute; case 4: return reviewSummary.getOwner().getName(); case 5: return reviewSummary.getProject(); case 6: String branch = reviewSummary.getBranch(); String topic = reviewSummary.getTopic(); if (topic != null && !topic.isEmpty()) { branch += " (" + topic + ")"; } return branch; case 7: { java.util.Date date = null; try { date = formatTimeOut.parse(reviewSummary.getUpdated()); } catch (ParseException e) { EGerritCorePlugin.logError(e.getMessage()); } boolean sameDay = DateUtils.isSameDay(date, Calendar.getInstance().getTime()); Calendar today = Calendar.getInstance(); Calendar currentReview = Calendar.getInstance(); currentReview.setTime(date); if (sameDay) { return Utils.formatDate(reviewSummary.getUpdated(), sameDayFormatTimeOut); } else if (today.get(Calendar.YEAR) != currentReview.get(Calendar.YEAR)) { return Utils.formatDate(reviewSummary.getUpdated(), differentYearFormatTimeOut); } else { return Utils.formatDate(reviewSummary.getUpdated(), sameYearFormatTimeOut); } } case 8: { fCodeReviewState = Utils.verifyTally((CODE_REVIEW), reviewSummary.getLabels()); return EMPTY_STRING; } case 9: { fVerifyState = Utils.verifyTally((VERIFIED), reviewSummary.getLabels()); return EMPTY_STRING; } default: return EMPTY_STRING; } } return EMPTY_STRING; }