Skip to content

Commit

Permalink
refactor(CuratedPackageSortedSetConverter): Drop this now unused class
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Viernau <frank_viernau@epam.com>
  • Loading branch information
fviernau committed Jan 30, 2023
1 parent 5edc135 commit 3f92142
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions model/src/main/kotlin/utils/SortedSetConverters.kt
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,9 @@ import com.fasterxml.jackson.databind.util.StdConverter

import java.util.SortedSet

import org.ossreviewtoolkit.model.CuratedPackage
import org.ossreviewtoolkit.model.Package
import org.ossreviewtoolkit.model.Project

class CuratedPackageSortedSetConverter : StdConverter<Set<CuratedPackage>, SortedSet<CuratedPackage>>() {
override fun convert(value: Set<CuratedPackage>) = value.toSortedSet(compareBy { it.metadata.id })
}

class PackageSortedSetConverter : StdConverter<Set<Package>, SortedSet<Package>>() {
override fun convert(value: Set<Package>) = value.toSortedSet(compareBy { it.id })
}
Expand Down

0 comments on commit 3f92142

Please sign in to comment.