Skip to content

Commit 3fd654a

Browse files
committed
[MPIR-463] Remove workaround to count the number of root content entries in JAR files
Co-authored-by: Gabriel Belingueres <[email protected]> This closes #73
1 parent 790b646 commit 3fd654a

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/main/java/org/apache/maven/report/projectinfo/dependencies/renderer/DependenciesRenderer.java

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -609,19 +609,11 @@ private void renderSectionDependencyFileDetails() {
609609
Collection<JarVersionedRuntime> versionedRuntimeList =
610610
versionedRuntimes.getVersionedRuntimeMap().values();
611611

612-
// workaround to count the number of root content entries
613-
// TODO: rework this when MSHARED-1411 is fixed
614-
Integer versionedNumEntries = versionedRuntimeList.stream()
615-
.map(versionedRuntime ->
616-
versionedRuntime.getEntries().size())
617-
.reduce(0, Integer::sum);
618-
Integer rootContentNumEntries = jarData.getNumEntries() - versionedNumEntries;
619-
620612
// root content information row
621613
tableRow(hasSealed, new String[] {
622614
rootTag,
623615
"",
624-
String.valueOf(rootContentNumEntries),
616+
String.valueOf(jarData.getNumRootEntries()),
625617
String.valueOf(jarData.getNumClasses()),
626618
String.valueOf(jarData.getNumPackages()),
627619
jdkRevisionCellValue,

0 commit comments

Comments
 (0)