Skip to content

Commit

Permalink
Initial CDXA support
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Leonard <[email protected]>
  • Loading branch information
andrew-m-leonard committed Nov 28, 2024
1 parent fd088a5 commit 919077a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cyclonedx-lib/src/temurin/sbom/TemurinGenSBOM.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 919077a

Please sign in to comment.