From 2251a20094811b2481e8dfc6e5827e67c4462585 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Tue, 18 May 2021 22:06:52 +0200 Subject: [PATCH] rename --- .../java/info/nightscout/androidaps/database/Converters.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database/src/main/java/info/nightscout/androidaps/database/Converters.kt b/database/src/main/java/info/nightscout/androidaps/database/Converters.kt index d41e5a6f42..ee645d06e4 100644 --- a/database/src/main/java/info/nightscout/androidaps/database/Converters.kt +++ b/database/src/main/java/info/nightscout/androidaps/database/Converters.kt @@ -27,11 +27,11 @@ class Converters { fun toSource(source: String?) = source?.let { Sources.fromString(it) } @TypeConverter - fun fromListOfXXXValueWithUnit(values: List): String = values.map(::ValueWithUnitWrapper) + fun fromListOfValueWithUnit(values: List): String = values.map(::ValueWithUnitWrapper) .let(SealedClassHelper.gson::toJson) @TypeConverter - fun toMutableListOfXXXValueWithUnit(string: String): List = SealedClassHelper.gson + fun toMutableListOfValueWithUnit(string: String): List = SealedClassHelper.gson .fromJson>(string).map { it.wrapped } private class ValueWithUnitWrapper(val wrapped: ValueWithUnit)