Skip to content

Commit

Permalink
refactor(model)!: Reduce the visibility of two converters
Browse files Browse the repository at this point in the history
Use the minimal possible visibility.

Signed-off-by: Frank Viernau <[email protected]>
  • Loading branch information
fviernau committed Mar 12, 2024
1 parent 534c574 commit 39c0ecb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions model/src/main/kotlin/config/LicenseFindingCuration.kt
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ data class LicenseFindingCuration(
}
}

class IntListToCsvStringConverter : StdConverter<List<Int>, String>() {
private class IntListToCsvStringConverter : StdConverter<List<Int>, String>() {
override fun convert(value: List<Int>): String = value.joinToString(separator = ",")
}

class CsvStringToIntListConverter : StdConverter<String, List<Int>>() {
private class CsvStringToIntListConverter : StdConverter<String, List<Int>>() {
override fun convert(value: String): List<Int> =
value
.split(',')
Expand Down

0 comments on commit 39c0ecb

Please sign in to comment.