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
This commit is contained in:
m3ch_mania 2020-07-17 22:43:16 -07:00
parent 9c213715a5
commit ec6bc11403

View file

@ -22,7 +22,8 @@ import java.time.Duration
object Constants { object Constants {
const val CLIENT_BUILD = 16 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_READ_TIME_SECONDS = 300
const val MAX_WRITE_TIME_SECONDS = 60 const val MAX_WRITE_TIME_SECONDS = 60