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:
parent
9c213715a5
commit
ec6bc11403
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue