diff --git a/src/main/java/org/spdx/library/LicenseInfoFactory.java b/src/main/java/org/spdx/library/LicenseInfoFactory.java index 5ee13ee35..89ff65f50 100644 --- a/src/main/java/org/spdx/library/LicenseInfoFactory.java +++ b/src/main/java/org/spdx/library/LicenseInfoFactory.java @@ -96,7 +96,7 @@ public static SpdxListedLicense getListedLicenseByIdCompatV2(String licenseId)th * @throws DefaultStoreNotInitializedException if the default model store is not initialized */ public static org.spdx.library.model.v2.license.AnyLicenseInfo parseSPDXLicenseStringCompatV2(String licenseString, @Nullable IModelStore store, - @Nullable String documentUri, @Nullable IModelCopyManager copyManager) throws DefaultStoreNotInitializedException { + @Nullable String documentUri, @Nullable IModelCopyManager copyManager) throws InvalidLicenseStringException, DefaultStoreNotInitializedException { if (Objects.isNull(store)) { store = DefaultModelStore.getDefaultModelStore(); }