@@ -548,34 +548,38 @@ private void renderSectionDependencyFileDetails() {
548
548
try {
549
549
JarData jarDetails = dependencies .getJarDependencyDetails (artifact );
550
550
551
- String debugInformationCellValue = debugInformationCellNo ;
552
- if (jarDetails .isDebugPresent ()) {
553
- debugInformationCellValue = debugInformationCellYes ;
554
- totalDebugInformation .incrementTotal (artifact .getScope ());
555
- }
556
-
557
551
totalentries .addTotal (jarDetails .getNumEntries (), artifact .getScope ());
558
552
totalclasses .addTotal (jarDetails .getNumClasses (), artifact .getScope ());
559
553
totalpackages .addTotal (jarDetails .getNumPackages (), artifact .getScope ());
560
554
561
- try {
562
- if (jarDetails .getJdkRevision () != null ) {
563
- double jdkRevision = Double .parseDouble (jarDetails .getJdkRevision ());
555
+ String jdkRevisionCellValue = jarDetails .getJdkRevision ();
556
+ String debugInformationCellValue = null ;
557
+ String sealedCellValue = null ;
558
+
559
+ if (jdkRevisionCellValue != null ) {
560
+ try {
561
+ double jdkRevision = Double .parseDouble (jdkRevisionCellValue );
564
562
boolean isTestScope = Artifact .SCOPE_TEST .equalsIgnoreCase (artifact .getScope ());
565
563
if (isTestScope ) {
566
564
highestTestJavaVersion = Math .max (highestTestJavaVersion , jdkRevision );
567
565
} else {
568
566
highestNonTestJavaVersion = Math .max (highestNonTestJavaVersion , jdkRevision );
569
567
}
568
+ } catch (NumberFormatException e ) {
569
+ // ignore
570
570
}
571
- } catch (NumberFormatException e ) {
572
- // ignore
573
- }
574
571
575
- String sealedCellValue = sealedCellNo ;
576
- if (jarDetails .isSealed ()) {
577
- sealedCellValue = sealedCellYes ;
578
- totalsealed .incrementTotal (artifact .getScope ());
572
+ debugInformationCellValue = debugInformationCellNo ;
573
+ if (jarDetails .isDebugPresent ()) {
574
+ debugInformationCellValue = debugInformationCellYes ;
575
+ totalDebugInformation .incrementTotal (artifact .getScope ());
576
+ }
577
+
578
+ sealedCellValue = sealedCellNo ;
579
+ if (jarDetails .isSealed ()) {
580
+ sealedCellValue = sealedCellYes ;
581
+ totalsealed .incrementTotal (artifact .getScope ());
582
+ }
579
583
}
580
584
581
585
String name = artifactFile .getName ();
@@ -593,7 +597,7 @@ private void renderSectionDependencyFileDetails() {
593
597
String .valueOf (jarDetails .getNumEntries ()),
594
598
String .valueOf (jarDetails .getNumClasses ()),
595
599
String .valueOf (jarDetails .getNumPackages ()),
596
- jarDetails . getJdkRevision () ,
600
+ jdkRevisionCellValue ,
597
601
debugInformationCellValue ,
598
602
sealedCellValue
599
603
});
0 commit comments