private void constructDetailRows()

in src/main/java/org/apache/maven/plugins/changes/issues/IssuesReportRenderer.java [142:226]


    private void constructDetailRows() {

        // Always use the international date format as recommended by the W3C:
        // http://www.w3.org/QA/Tips/iso-date
        DateFormat df = new SimpleDateFormat("yyyy-MM-dd");

        for (Issue issue : issueList) {

            sink.tableRow();

            for (int column : columns) {
                switch (column) {
                    case IssuesReportHelper.COLUMN_ASSIGNEE:
                        sinkCell(issue.getAssignee());
                        break;

                    case IssuesReportHelper.COLUMN_COMPONENT:
                        sinkCell(IssuesReportHelper.printValues(issue.getComponents()));
                        break;

                    case IssuesReportHelper.COLUMN_CREATED:
                        String created = NOT_AVAILABLE;
                        if (issue.getCreated() != null) {
                            created = df.format(issue.getCreated());
                        }
                        sinkCell(created);
                        break;

                    case IssuesReportHelper.COLUMN_FIX_VERSION:
                        sinkCell(IssuesReportHelper.printValues(issue.getFixVersions()));
                        break;

                    case IssuesReportHelper.COLUMN_ID:
                        sinkCellLink(issue.getId(), issue.getLink());
                        break;

                    case IssuesReportHelper.COLUMN_KEY:
                        sinkCellLink(issue.getKey(), issue.getLink());
                        break;

                    case IssuesReportHelper.COLUMN_PRIORITY:
                        sinkCell(issue.getPriority());
                        break;

                    case IssuesReportHelper.COLUMN_REPORTER:
                        sinkCell(issue.getReporter());
                        break;

                    case IssuesReportHelper.COLUMN_RESOLUTION:
                        sinkCell(issue.getResolution());
                        break;

                    case IssuesReportHelper.COLUMN_STATUS:
                        sinkCell(issue.getStatus());
                        break;

                    case IssuesReportHelper.COLUMN_SUMMARY:
                        sinkCell(issue.getSummary());
                        break;

                    case IssuesReportHelper.COLUMN_TYPE:
                        sinkCell(issue.getType());
                        break;

                    case IssuesReportHelper.COLUMN_UPDATED:
                        String updated = NOT_AVAILABLE;
                        if (issue.getUpdated() != null) {
                            updated = df.format(issue.getUpdated());
                        }
                        sinkCell(updated);
                        break;

                    case IssuesReportHelper.COLUMN_VERSION:
                        sinkCell(issue.getVersion());
                        break;

                    default:
                        // Do not add this column
                        break;
                }
            }

            sink.tableRow_();
        }
    }