Skip to content

Commit 1d46108

Browse files
committed
refactor(CopyrightGarbage): Avoid using a SortedSet
See #6235 for context. Here, the use of `StringSortedSetConverter` is not required, as `ImportCopyrightGarbageCommand` is the only place that serializes the class, and that uses its own `Collator` for custom sorting. Signed-off-by: Sebastian Schuberth <[email protected]>
1 parent 9e2d776 commit 1d46108

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

model/src/main/kotlin/config/CopyrightGarbage.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,14 @@
1919

2020
package org.ossreviewtoolkit.model.config
2121

22-
import java.util.SortedSet
23-
2422
/**
2523
* A class that defines which Copyright statements are to be considered as garbage instead of real findings.
2624
*/
2725
data class CopyrightGarbage(
2826
/**
2927
* A set of literal strings that identify garbage Copyright findings.
3028
*/
31-
val items: SortedSet<String> = sortedSetOf()
29+
val items: Set<String> = emptySet()
3230
)
3331

3432
fun CopyrightGarbage?.orEmpty(): CopyrightGarbage = this ?: CopyrightGarbage()

0 commit comments

Comments
 (0)