From 919077a6d5ab59fa81b4ed7fab07cd22f0805ffd Mon Sep 17 00:00:00 2001 From: Andrew Leonard Date: Thu, 28 Nov 2024 12:11:26 +0000 Subject: [PATCH] Initial CDXA support Signed-off-by: Andrew Leonard --- cyclonedx-lib/src/temurin/sbom/TemurinGenSBOM.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cyclonedx-lib/src/temurin/sbom/TemurinGenSBOM.java b/cyclonedx-lib/src/temurin/sbom/TemurinGenSBOM.java index a94953fab..07e6702ba 100644 --- a/cyclonedx-lib/src/temurin/sbom/TemurinGenSBOM.java +++ b/cyclonedx-lib/src/temurin/sbom/TemurinGenSBOM.java @@ -128,7 +128,7 @@ public static void main(final String[] args) { } } switch (cmd) { - case "createNewSBOM": // Creates new SBOM + case "createNewSBOM": // Creates new SBOM Bom bom = createBom(); writeFile(bom, fileName); break; @@ -202,7 +202,7 @@ public static void main(final String[] args) { */ static Bom createBom() { Bom bom = new Bom(); - bom.setSerialNumber("urn:uuid:"+UUID.randomUUID()); + bom.setSerialNumber("urn:uuid:" + UUID.randomUUID()); return bom; } @@ -436,9 +436,9 @@ static String generateBomXml(final Bom bom) throws GeneratorException { static void writeFile(final Bom bom, final String fileName) { if (useJson) { writeJSONfile(bom, fileName); - } else { + } else { writeXMLfile(bom, fileName); - } + } } // Read the BOM object from the specified type of file