From 16bbb3808d9a09bbdd975636b92c3959f23fba10 Mon Sep 17 00:00:00 2001 From: Bram Wijnands Date: Wed, 21 Feb 2024 08:50:06 +0000 Subject: [PATCH] Ktfmt --- src/main/kotlin/org/audux/bgg/response/Plays.kt | 3 ++- src/main/kotlin/org/audux/bgg/response/Things.kt | 3 +-- src/test/kotlin/org/audux/bgg/response/PlaysResponseTest.kt | 3 +-- .../kotlin/org/audux/bgg/response/ThingsResponseTest.kt | 6 +++--- 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/main/kotlin/org/audux/bgg/response/Plays.kt b/src/main/kotlin/org/audux/bgg/response/Plays.kt index ffdab79..a78f33f 100644 --- a/src/main/kotlin/org/audux/bgg/response/Plays.kt +++ b/src/main/kotlin/org/audux/bgg/response/Plays.kt @@ -109,7 +109,8 @@ data class PlayItem( /** A SubType of a thing e.g. board game. */ data class SubType( @JsonDeserialize(using = WrappedSubTypeDeserializer::class) - val subtype: org.audux.bgg.common.SubType) + val subtype: org.audux.bgg.common.SubType +) /** * Represents a person in the play i.e. their username, id, what color they played, how they did diff --git a/src/main/kotlin/org/audux/bgg/response/Things.kt b/src/main/kotlin/org/audux/bgg/response/Things.kt index edf9dc3..53e38c7 100644 --- a/src/main/kotlin/org/audux/bgg/response/Things.kt +++ b/src/main/kotlin/org/audux/bgg/response/Things.kt @@ -318,8 +318,7 @@ data class Comment( /** A single listing for the thing i.e. a 'for sale'-listing. */ data class MarketplaceListing( /** When the listing was created. */ - @JsonDeserialize(using = WrappedLocalDateTimeDeserializer::class) - val listDate: LocalDateTime, + @JsonDeserialize(using = WrappedLocalDateTimeDeserializer::class) val listDate: LocalDateTime, /** The requested price for the listing. */ val price: Price, diff --git a/src/test/kotlin/org/audux/bgg/response/PlaysResponseTest.kt b/src/test/kotlin/org/audux/bgg/response/PlaysResponseTest.kt index 96e1ae9..ce8626f 100644 --- a/src/test/kotlin/org/audux/bgg/response/PlaysResponseTest.kt +++ b/src/test/kotlin/org/audux/bgg/response/PlaysResponseTest.kt @@ -57,8 +57,7 @@ class PlaysResponseTest { name = "Sid Meier's Civilization: The Board Game", objectType = PlayThingType.THING, objectId = 77130, - subTypes = - listOf(SubType(org.audux.bgg.common.SubType.BOARD_GAME)) + subTypes = listOf(SubType(org.audux.bgg.common.SubType.BOARD_GAME)) ) ) assertThat(civGame.players) diff --git a/src/test/kotlin/org/audux/bgg/response/ThingsResponseTest.kt b/src/test/kotlin/org/audux/bgg/response/ThingsResponseTest.kt index 3e21110..4a87a4b 100644 --- a/src/test/kotlin/org/audux/bgg/response/ThingsResponseTest.kt +++ b/src/test/kotlin/org/audux/bgg/response/ThingsResponseTest.kt @@ -15,13 +15,13 @@ package org.audux.bgg.response import com.fasterxml.jackson.databind.ObjectMapper import com.google.common.truth.Truth.assertThat +import java.net.URI +import java.time.LocalDate +import java.time.LocalDateTime import org.audux.bgg.common.ThingType import org.audux.bgg.util.TestUtils import org.junit.jupiter.api.Nested import org.junit.jupiter.api.Test -import java.net.URI -import java.time.LocalDate -import java.time.LocalDateTime /** Test class for [Things] data classes. */ class ThingsResponseTest {