Skip to content

Commit

Permalink
Update JavaDoc for LicenseInfoFactory
Browse files Browse the repository at this point in the history
Document the default will be used for copyManager if null.

Fixes #257

Signed-off-by: Gary O'Neall <[email protected]>
  • Loading branch information
goneall committed Dec 12, 2024
1 parent 96c9187 commit f321b13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/spdx/library/LicenseInfoFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public static SpdxListedLicense getListedLicenseByIdCompatV2(String licenseId)th
* none exist for an ID, they will be added. If null, the default model store will be used.
* @param documentUri Document URI for the document containing any extractedLicenseInfos - if any extractedLicenseInfos by ID already exist, they will be used. If
* none exist for an ID, they will be added. If null, the default model document URI will be used.
* @param copyManager if non-null, allows for copying of any properties set which use other model stores or document URI's
* @param copyManager allows for copying of any properties set which use other model stores or document URI's. If null, the default will be used.
* @return an SPDXLicenseInfo created from the string
* @throws InvalidLicenseStringException if the license string is not valid
* @throws DefaultStoreNotInitialized if the default model store is not initialized
Expand Down Expand Up @@ -129,7 +129,7 @@ public static org.spdx.library.model.v2.license.AnyLicenseInfo parseSPDXLicenseS
* none exist for an ID, they will be added. If null, the default model store will be used.
* @param customLicensePrefix Prefix to use for any custom licenses or addition IDs found in the string. If the resultant object URI does not exist
* for an ID, they will be added. If null, the default model document URI + "#" will be used.
* @param copyManager if non-null, allows for copying of any properties set which use other model stores or document URI's
* @param copyManager allows for copying of any properties set which use other model stores or document URI's. If null, the default will be used.
* @param customIdToUri Mapping of the id prefixes used in the license expression to the namespace preceding the external ID
* @return an SPDXLicenseInfo created from the string
* @throws InvalidLicenseStringException if the license string is not valid
Expand Down

0 comments on commit f321b13

Please sign in to comment.