From 6a35cd098c80b35986ced276a7bc7bd7df8362b9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 30 May 2016 18:33:44 +0200 Subject: [PATCH] Use shorter getter annotation syntax --- .../net/pterodactylus/rhynodge/webpages/weather/WeatherState.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/net/pterodactylus/rhynodge/webpages/weather/WeatherState.kt b/src/main/kotlin/net/pterodactylus/rhynodge/webpages/weather/WeatherState.kt index dff71d7..0d1d7f1 100644 --- a/src/main/kotlin/net/pterodactylus/rhynodge/webpages/weather/WeatherState.kt +++ b/src/main/kotlin/net/pterodactylus/rhynodge/webpages/weather/WeatherState.kt @@ -20,9 +20,8 @@ class WeatherState(val service: String, val dateTime: ZonedDateTime) : AbstractS @JsonProperty("hours") val hours: List = mutableListOf() - val timeMillis: Long - @JsonGetter("dateTime") - get() = dateTime.toInstant().toEpochMilli() + @get:JsonGetter("dateTime") + val timeMillis = dateTime.toInstant().toEpochMilli() operator fun plusAssign(hourState: HourState) { (hours as MutableList).add(hourState) -- 2.7.4