Skip to content

Commit fbef3db

Browse files
authored
Update FileStorageImpl.java
1 parent 4a6f206 commit fbef3db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/spdx/service/FileStorageImpl.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import java.nio.file.StandardCopyOption;
1414
import java.util.ArrayList;
1515
import java.util.HashSet;
16+
import java.util.LinkedList;
1617
import java.util.List;
1718
import java.util.Properties;
1819
import java.util.Set;
@@ -125,7 +126,7 @@ public OutputModel readContentFile(String fileName) throws Exception {
125126
utils.importComponentAddReLease(rootPathFile + fileName, component, release);
126127

127128
// Set licenseIds for component
128-
Set<String> licenseIds = new HashSet<String>();
129+
List<String> licenseIds = new LinkedList<String>();
129130
for (SpdxLicense license : lstLicense) {
130131
licenseIds.add(license.getShortName());
131132
}

0 commit comments

Comments
 (0)