Skip to content

Commit 880e94e

Browse files
committed
Make SPDX spec 2 license map getters protected
1 parent bfa3c81 commit 880e94e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/spdx/library/ListedLicenses.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ public Map<String, ListedLicenseException> getSpdxListedLicenseExceptions() thro
306306
* @return a map of SPDX listed license IDs to the SPDX Spec version 2 listed license
307307
* @throws InvalidSPDXAnalysisException on errors fetching the licenses
308308
*/
309-
public Map<String, SpdxListedLicense> getSpdxListedLicensesCompatV2() throws InvalidSPDXAnalysisException {
309+
protected Map<String, SpdxListedLicense> getSpdxListedLicensesCompatV2() throws InvalidSPDXAnalysisException {
310310
listedLicenseModificationLock.readLock().lock();
311311
try {
312312
if (Objects.nonNull(this.spdxListedLicenseMapCompatV2)) {
@@ -337,7 +337,7 @@ public Map<String, SpdxListedLicense> getSpdxListedLicensesCompatV2() throws Inv
337337
* @return a map of SPDX listed license exception IDs to the SPDX listed license exception
338338
* @throws InvalidSPDXAnalysisException on errors fetching the license exceptions
339339
*/
340-
public Map<String, org.spdx.library.model.v2.license.ListedLicenseException> getSpdxListedLicenseExceptionsCompatV2() throws InvalidSPDXAnalysisException {
340+
protected Map<String, org.spdx.library.model.v2.license.ListedLicenseException> getSpdxListedLicenseExceptionsCompatV2() throws InvalidSPDXAnalysisException {
341341
listedLicenseModificationLock.readLock().lock();
342342
try {
343343
if (Objects.nonNull(this.spdxListedExceptionMapCompatV2)) {

0 commit comments

Comments
 (0)