Ignore:
Timestamp:
2017-04-10T00:14:42+02:00 (2 years ago)
Author:
Don-vip
Message:

findbugs - EI_EXPOSE_REP2 + javadoc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/io/ChangesetCellRenderer.java

    r11848 r11878  
    66import java.awt.Component;
    77import java.text.DateFormat;
     8import java.util.Date;
    89
    910import javax.swing.ImageIcon;
     
    3738        StringBuilder sb = new StringBuilder(64);
    3839        sb.append("<html><strong>").append(tr("Changeset id:")).append("</strong>").append(cs.getId()).append("<br>");
    39         if (cs.getCreatedAt() != null) {
     40        Date createdDate = cs.getCreatedAt();
     41        if (createdDate != null) {
    4042            sb.append("<strong>").append(tr("Created at:")).append("</strong>").append(
    41                     DateUtils.formatDateTime(cs.getCreatedAt(), DateFormat.SHORT, DateFormat.SHORT)).append("<br>");
     43                    DateUtils.formatDateTime(createdDate, DateFormat.SHORT, DateFormat.SHORT)).append("<br>");
    4244        }
    4345        String comment = cs.get("comment");
Note: See TracChangeset for help on using the changeset viewer.