Skip to content

Commit

Permalink
[MPIR-463] Remove workaround to count the number of root content entr…
Browse files Browse the repository at this point in the history
…ies in JAR files

Co-authored-by: Gabriel Belingueres <belingueres@gmail.com>

This closes #73
  • Loading branch information
michael-o committed Jun 23, 2024
1 parent 790b646 commit 3fd654a
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -609,19 +609,11 @@ private void renderSectionDependencyFileDetails() {
Collection<JarVersionedRuntime> 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,
Expand Down

0 comments on commit 3fd654a

Please sign in to comment.