From 9495d548c6e74cef9342ee1b9b028c1a0268277b Mon Sep 17 00:00:00 2001 From: Sebastian Schuberth Date: Wed, 27 Mar 2024 19:05:32 +0100 Subject: [PATCH] refactor(model): Make an `associateLicensesWithExceptions` overload public 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 --- model/src/main/kotlin/utils/FindingsMatcher.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/src/main/kotlin/utils/FindingsMatcher.kt b/model/src/main/kotlin/utils/FindingsMatcher.kt index 749d6506dbbb3..53800ee89a53a 100644 --- a/model/src/main/kotlin/utils/FindingsMatcher.kt +++ b/model/src/main/kotlin/utils/FindingsMatcher.kt @@ -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