Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-o committed May 13, 2023
1 parent 242d206 commit 51d784e
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ private void renderSectionDependencyFileDetails() {
totalentries.getTotalString(i),
totalclasses.getTotalString(i),
totalpackages.getTotalString(i),
(i < 0) ? getHighestVersion(highestJavaVersion) : "",
(i < 0 && highestJavaVersion > 0.0) ? String.valueOf(highestJavaVersion) : "",
totalDebugInformation.getTotalString(i),
totalsealed.getTotalString(i)
});
Expand All @@ -622,13 +622,6 @@ private void renderSectionDependencyFileDetails() {
endSection();
}

private String getHighestVersion(double version) {
if (version > 0.0d) {
return String.valueOf(version);
}
return "-";
}

// Almost as same as in the abstract class but includes the title attribute
private void tableHeader(String[] content, String[] titles) {
sink.tableRow();
Expand Down

0 comments on commit 51d784e

Please sign in to comment.