From ec6bc11403104a300f913e15ec0353350021fcd8 Mon Sep 17 00:00:00 2001 From: m3ch_mania <2357245-m3ch_mania@users.noreply.gitlab.com> Date: Fri, 17 Jul 2020 22:43:16 -0700 Subject: [PATCH] Declare non-primitive constant as field In order to remove unnecesary setters/getters, the "@JvmField" annotation has been prefixed to the "MAX_AGE_CACHE" constant in Constants.kt --- src/main/kotlin/mdnet/base/Constants.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/mdnet/base/Constants.kt b/src/main/kotlin/mdnet/base/Constants.kt index 4160745..7f4697c 100644 --- a/src/main/kotlin/mdnet/base/Constants.kt +++ b/src/main/kotlin/mdnet/base/Constants.kt @@ -22,7 +22,8 @@ import java.time.Duration object Constants { const val CLIENT_BUILD = 16 - val MAX_AGE_CACHE: Duration = Duration.ofDays(14) + + @JvmField val MAX_AGE_CACHE: Duration = Duration.ofDays(14) const val MAX_READ_TIME_SECONDS = 300 const val MAX_WRITE_TIME_SECONDS = 60