diff --git a/model/src/main/kotlin/utils/FindingsMatcher.kt b/model/src/main/kotlin/utils/FindingsMatcher.kt index ba314411198a8..749d6506dbbb3 100644 --- a/model/src/main/kotlin/utils/FindingsMatcher.kt +++ b/model/src/main/kotlin/utils/FindingsMatcher.kt @@ -346,6 +346,6 @@ internal fun associateLicensesWithExceptions(license: SpdxExpression): SpdxExpre return if (associatedLicenses.size == 1) { associatedLicenses.first() } else { - SpdxCompoundExpression(SpdxOperator.AND, associatedLicenses.toList()) + SpdxCompoundExpression(SpdxOperator.AND, associatedLicenses) } } diff --git a/utils/spdx/src/main/kotlin/SpdxExpression.kt b/utils/spdx/src/main/kotlin/SpdxExpression.kt index e52fc64e0206c..33d3db1dcaabc 100644 --- a/utils/spdx/src/main/kotlin/SpdxExpression.kt +++ b/utils/spdx/src/main/kotlin/SpdxExpression.kt @@ -217,7 +217,7 @@ sealed class SpdxExpression { */ class SpdxCompoundExpression( val operator: SpdxOperator, - val children: List + val children: Collection ) : SpdxExpression() { /** * Create a compound expression with the provided [operator] and the [left] and [right] child expressions.