Skip to content

Commit

Permalink
refactor(model): Make an associateLicensesWithExceptions overload p…
Browse files Browse the repository at this point in the history
…ublic

Allow this to be called from plugins, like package configuration
providers that need to fixup the declared license of a license finding
curation.

Signed-off-by: Sebastian Schuberth <[email protected]>
  • Loading branch information
sschuberth committed Mar 28, 2024
1 parent 0a48698 commit 9495d54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/src/main/kotlin/utils/FindingsMatcher.kt
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ fun associateLicensesWithExceptions(
* licenses. Orphan license exceptions will get associated by [SpdxConstants.NOASSERTION]. Return a new expression that
* does not contain stand-alone license exceptions anymore.
*/
internal fun associateLicensesWithExceptions(license: SpdxExpression): SpdxExpression {
fun associateLicensesWithExceptions(license: SpdxExpression): SpdxExpression {
// If this is not a compound expression, there can be no stand-alone license exceptions with belonging licenses.
if (license !is SpdxCompoundExpression) return license

Expand Down

0 comments on commit 9495d54

Please sign in to comment.