From b08af0c292d9beb4a9a53b3acd94a5753eb54d1c Mon Sep 17 00:00:00 2001
From: Michael Osipov <michaelo@apache.org>
Date: Sat, 22 Jun 2024 12:07:46 +0200
Subject: [PATCH] Improve variable name

---
 .../renderer/DependenciesRenderer.java        | 39 ++++++++-----------
 1 file changed, 16 insertions(+), 23 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 81d81281..5fe415b4 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
@@ -550,13 +550,13 @@ private void renderSectionDependencyFileDetails() {
 
             if (JAR_SUBTYPE.contains(artifact.getType().toLowerCase())) {
                 try {
-                    JarData jarDetails = dependencies.getJarDependencyDetails(artifact);
+                    JarData jarData = dependencies.getJarDependencyDetails(artifact);
 
-                    totalentries.addTotal(jarDetails.getNumEntries(), artifact.getScope());
-                    totalclasses.addTotal(jarDetails.getNumClasses(), artifact.getScope());
-                    totalpackages.addTotal(jarDetails.getNumPackages(), artifact.getScope());
+                    totalentries.addTotal(jarData.getNumEntries(), artifact.getScope());
+                    totalclasses.addTotal(jarData.getNumClasses(), artifact.getScope());
+                    totalpackages.addTotal(jarData.getNumPackages(), artifact.getScope());
 
-                    String jdkRevisionCellValue = jarDetails.getJdkRevision();
+                    String jdkRevisionCellValue = jarData.getJdkRevision();
                     String debugInformationCellValue = null;
                     String sealedCellValue = null;
 
@@ -574,13 +574,13 @@ private void renderSectionDependencyFileDetails() {
                         }
 
                         debugInformationCellValue = debugInformationCellNo;
-                        if (jarDetails.isDebugPresent()) {
+                        if (jarData.isDebugPresent()) {
                             debugInformationCellValue = debugInformationCellYes;
                             totalDebugInformation.incrementTotal(artifact.getScope());
                         }
 
                         sealedCellValue = sealedCellNo;
-                        if (jarDetails.isSealed()) {
+                        if (jarData.isSealed()) {
                             sealedCellValue = sealedCellYes;
                             totalsealed.incrementTotal(artifact.getScope());
                         }
@@ -595,24 +595,17 @@ private void renderSectionDependencyFileDetails() {
                         fileLength = "-";
                     }
 
-                    if (jarDetails.isMultiRelease()) {
+                    if (jarData.isMultiRelease()) {
                         String htmlBullet = "&#160;&#160;&#160;&#x2022; ";
                         String rootTag = htmlBullet + getI18nString("file.details.multirelease.root");
                         String versionedTag = htmlBullet + getI18nString("file.details.multirelease.versioned");
 
                         // general jar information row
                         tableRow(hasSealed, new String[] {
-                            name,
-                            fileLength,
-                            String.valueOf(jarDetails.getNumEntries()),
-                            "",
-                            "",
-                            "",
-                            "",
-                            sealedCellValue
+                            name, fileLength, String.valueOf(jarData.getNumEntries()), "", "", "", "", sealedCellValue
                         });
 
-                        JarVersionedRuntimes versionedRuntimes = jarDetails.getVersionedRuntimes();
+                        JarVersionedRuntimes versionedRuntimes = jarData.getVersionedRuntimes();
                         Collection<JarVersionedRuntime> versionedRuntimeList =
                                 versionedRuntimes.getVersionedRuntimeMap().values();
 
@@ -622,15 +615,15 @@ private void renderSectionDependencyFileDetails() {
                                 .map(versionedRuntime ->
                                         versionedRuntime.getEntries().size())
                                 .reduce(0, Integer::sum);
-                        Integer rootContentNumEntries = jarDetails.getNumEntries() - versionedNumEntries;
+                        Integer rootContentNumEntries = jarData.getNumEntries() - versionedNumEntries;
 
                         // root content information row
                         tableRow(hasSealed, new String[] {
                             rootTag,
                             "",
                             String.valueOf(rootContentNumEntries),
-                            String.valueOf(jarDetails.getNumClasses()),
-                            String.valueOf(jarDetails.getNumPackages()),
+                            String.valueOf(jarData.getNumClasses()),
+                            String.valueOf(jarData.getNumPackages()),
                             jdkRevisionCellValue,
                             debugInformationCellValue,
                             ""
@@ -657,9 +650,9 @@ private void renderSectionDependencyFileDetails() {
                         tableRow(hasSealed, new String[] {
                             name,
                             fileLength,
-                            String.valueOf(jarDetails.getNumEntries()),
-                            String.valueOf(jarDetails.getNumClasses()),
-                            String.valueOf(jarDetails.getNumPackages()),
+                            String.valueOf(jarData.getNumEntries()),
+                            String.valueOf(jarData.getNumClasses()),
+                            String.valueOf(jarData.getNumPackages()),
                             jdkRevisionCellValue,
                             debugInformationCellValue,
                             sealedCellValue