Skip to content

Commit

Permalink
Merge pull request #245 from spdx/updatesheetversion
Browse files Browse the repository at this point in the history
Fix issue where the wrong version of PerFileSheet was being created
  • Loading branch information
goneall authored Jul 25, 2020
2 parents 4602daa + d89ae24 commit 8b7b59c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/spdx/spdxspreadsheet/PerFileSheet.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down
1 change: 1 addition & 0 deletions src/org/spdx/spdxspreadsheet/PerFileSheetV2d2.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8b7b59c

Please sign in to comment.