diff --git a/plugins/package-managers/pub/src/main/kotlin/Pubspec.kt b/plugins/package-managers/pub/src/main/kotlin/Pubspec.kt index aff4b9917b5fb..6e78758cb29b9 100644 --- a/plugins/package-managers/pub/src/main/kotlin/Pubspec.kt +++ b/plugins/package-managers/pub/src/main/kotlin/Pubspec.kt @@ -101,7 +101,7 @@ internal data class Pubspec( * If transformations like for JSON were available in kaml, this serializer could be simplified, see also * https://github.com/charleskorn/kaml/issues/29. */ -private class DependencyMapSerializer : KSerializer> { +private object DependencyMapSerializer : KSerializer> { override val descriptor = serialDescriptor>() override fun serialize(encoder: Encoder, value: Map) { diff --git a/plugins/reporters/gitlab/src/main/kotlin/GitLabLicenseModel.kt b/plugins/reporters/gitlab/src/main/kotlin/GitLabLicenseModel.kt index 5afb4110f9c2e..45bbe7678932d 100644 --- a/plugins/reporters/gitlab/src/main/kotlin/GitLabLicenseModel.kt +++ b/plugins/reporters/gitlab/src/main/kotlin/GitLabLicenseModel.kt @@ -100,12 +100,12 @@ internal data class GitLabLicenseModel( ) } -private class SortedDependenciesListSerializer : +private object SortedDependenciesListSerializer : KSerializer> by sortedListSerializer( compareBy({ it.packageManager }, { it.name }, { it.version }) ) -private class SortedLicenseSetSerializer : +private object SortedLicenseSetSerializer : KSerializer> by sortedSetSerializer(compareBy { it.id }) -private class SortedStringSetSerializer : KSerializer> by sortedSetSerializer(compareBy { it }) +private object SortedStringSetSerializer : KSerializer> by sortedSetSerializer(compareBy { it })