From 3fd654a98c709e9051d5dc8d6fd250db43b79467 Mon Sep 17 00:00:00 2001 From: Michael Osipov Date: Sat, 22 Jun 2024 12:21:39 +0200 Subject: [PATCH] [MPIR-463] Remove workaround to count the number of root content entries in JAR files Co-authored-by: Gabriel Belingueres This closes #73 --- .../dependencies/renderer/DependenciesRenderer.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/main/java/org/apache/maven/report/projectinfo/dependencies/renderer/DependenciesRenderer.java b/src/main/java/org/apache/maven/report/projectinfo/dependencies/renderer/DependenciesRenderer.java index 5d0db2f8..9fc57ceb 100644 --- a/src/main/java/org/apache/maven/report/projectinfo/dependencies/renderer/DependenciesRenderer.java +++ b/src/main/java/org/apache/maven/report/projectinfo/dependencies/renderer/DependenciesRenderer.java @@ -609,19 +609,11 @@ private void renderSectionDependencyFileDetails() { Collection versionedRuntimeList = versionedRuntimes.getVersionedRuntimeMap().values(); - // workaround to count the number of root content entries - // TODO: rework this when MSHARED-1411 is fixed - Integer versionedNumEntries = versionedRuntimeList.stream() - .map(versionedRuntime -> - versionedRuntime.getEntries().size()) - .reduce(0, Integer::sum); - Integer rootContentNumEntries = jarData.getNumEntries() - versionedNumEntries; - // root content information row tableRow(hasSealed, new String[] { rootTag, "", - String.valueOf(rootContentNumEntries), + String.valueOf(jarData.getNumRootEntries()), String.valueOf(jarData.getNumClasses()), String.valueOf(jarData.getNumPackages()), jdkRevisionCellValue,