From d89ae247f4344b1ebe769c1814b7a187ef7dc328 Mon Sep 17 00:00:00 2001 From: Gary O'Neall Date: Thu, 2 Jul 2020 08:59:12 -0700 Subject: [PATCH] Fix issue where the wrong version of PerFileSheet was being created Signed-off-by: Gary O'Neall --- src/org/spdx/spdxspreadsheet/PerFileSheet.java | 2 +- src/org/spdx/spdxspreadsheet/PerFileSheetV2d2.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/org/spdx/spdxspreadsheet/PerFileSheet.java b/src/org/spdx/spdxspreadsheet/PerFileSheet.java index b19e77e2..c72b70bb 100644 --- a/src/org/spdx/spdxspreadsheet/PerFileSheet.java +++ b/src/org/spdx/spdxspreadsheet/PerFileSheet.java @@ -135,7 +135,7 @@ public static String[] csvToStrings(String csv) { */ public static void create(Workbook wb, String perFileSheetName) { //NOTE: This needs to be updated the the most current version - PerFileSheetV2d0.create(wb, perFileSheetName); + PerFileSheetV2d2.create(wb, perFileSheetName); } /** diff --git a/src/org/spdx/spdxspreadsheet/PerFileSheetV2d2.java b/src/org/spdx/spdxspreadsheet/PerFileSheetV2d2.java index 4a6f59b3..97865511 100644 --- a/src/org/spdx/spdxspreadsheet/PerFileSheetV2d2.java +++ b/src/org/spdx/spdxspreadsheet/PerFileSheetV2d2.java @@ -390,6 +390,7 @@ private String validateRow(Row row) { } return null; } + public static void create(Workbook wb, String sheetName) { int sheetNum = wb.getSheetIndex(sheetName); if (sheetNum >= 0) {