From 6b36983a1936cb43cb6464a844e2bf8dfa51af2d Mon Sep 17 00:00:00 2001 From: Frank Viernau Date: Tue, 12 Mar 2024 15:06:53 +0100 Subject: [PATCH] refactor(model)!: Reduce the visibility of two converters Use the minimal possible visibility. Signed-off-by: Frank Viernau --- model/src/main/kotlin/config/LicenseFindingCuration.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/model/src/main/kotlin/config/LicenseFindingCuration.kt b/model/src/main/kotlin/config/LicenseFindingCuration.kt index 1a40632ff8a5c..06a922a4824bd 100644 --- a/model/src/main/kotlin/config/LicenseFindingCuration.kt +++ b/model/src/main/kotlin/config/LicenseFindingCuration.kt @@ -87,11 +87,11 @@ data class LicenseFindingCuration( } } -class IntListToCsvStringConverter : StdConverter, String>() { +private class IntListToCsvStringConverter : StdConverter, String>() { override fun convert(value: List): String = value.joinToString(separator = ",") } -class CsvStringToIntListConverter : StdConverter>() { +private class CsvStringToIntListConverter : StdConverter>() { override fun convert(value: String): List = value .split(',')