diff --git a/src/main/java/org/codehaus/mojo/versions/reporting/PropertyUpdatesReportRenderer.java b/src/main/java/org/codehaus/mojo/versions/reporting/PropertyUpdatesReportRenderer.java index a842d3ce7..8f1559c5a 100644 --- a/src/main/java/org/codehaus/mojo/versions/reporting/PropertyUpdatesReportRenderer.java +++ b/src/main/java/org/codehaus/mojo/versions/reporting/PropertyUpdatesReportRenderer.java @@ -67,7 +67,7 @@ protected void renderManagementSummaryTable() @Override protected void renderSummaryTable() { - renderSummaryTable( "report.overview.property", model.getAllUpdates(), + renderTable( "report.overview.property", model.getAllUpdates(), "report.overview.noProperty" ); } @@ -80,7 +80,7 @@ protected void renderDetails() model.getAllUpdates().forEach( this::renderPropertyDetail ); } - private void renderSummaryTable( String titleKey, Map contents, String emptyKey ) + protected void renderTable( String titleKey, Map contents, String emptyKey ) { sink.section2(); sink.sectionTitle2(); @@ -95,15 +95,28 @@ private void renderSummaryTable( String titleKey, Map contents ) + { + sink.table(); + + sink.tableRow(); + renderSummaryTableHeader( false, false ); + sink.tableRow_(); + + contents.forEach( this::renderPropertySummaryTableRow ); + + sink.tableRow(); + renderSummaryTableHeader( false, false ); + sink.tableRow_(); + + sink.table_(); + } + private void renderPropertySummaryTableRow( Property property, PropertyVersions versions ) { sink.tableRow(); @@ -370,13 +383,12 @@ protected Set getVersionsInRange( Property property, PropertyVersions ve return rangeVersions; } - private void renderPropertySummaryTableHeader() + @Override + protected void renderSummaryTableHeader( boolean hasScope, boolean hasType ) { - sink.tableRow(); renderTableHeaderCells( "report.status", "report.property", "report.currentVersion", "report.latestSubIncremental", "report.latestIncremental", "report.latestMinor", "report.latestMajor" ); - sink.tableRow_(); } @Override