From df9ac938d7f101ffe077751fe2b59a65be940fa8 Mon Sep 17 00:00:00 2001 From: joffrey-bion Date: Wed, 10 Feb 2021 17:14:27 +0100 Subject: Cleanup experimental annotations --- .../org/luxons/sevenwonders/server/controllers/AutoGameController.kt | 2 -- .../org/luxons/sevenwonders/server/controllers/LobbyController.kt | 2 -- .../src/test/kotlin/org/luxons/sevenwonders/server/SevenWondersTest.kt | 2 -- 3 files changed, 6 deletions(-) (limited to 'sw-server/src') diff --git a/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/controllers/AutoGameController.kt b/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/controllers/AutoGameController.kt index 4acdc3be..796dc719 100644 --- a/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/controllers/AutoGameController.kt +++ b/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/controllers/AutoGameController.kt @@ -12,7 +12,6 @@ import org.springframework.web.bind.annotation.PostMapping import org.springframework.web.bind.annotation.RequestBody import org.springframework.web.bind.annotation.RestController import java.security.Principal -import kotlin.time.ExperimentalTime import kotlin.time.minutes /** @@ -22,7 +21,6 @@ import kotlin.time.minutes class AutoGameController( @Value("\${server.port}") private val serverPort: String, ) { - @OptIn(ExperimentalTime::class) @PostMapping("/autoGame") suspend fun autoGame(@RequestBody action: AutoGameAction, principal: Principal): AutoGameResult { logger.info("Starting auto-game {}", action.gameName) diff --git a/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/controllers/LobbyController.kt b/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/controllers/LobbyController.kt index 5c2d4dd6..2edf7fee 100644 --- a/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/controllers/LobbyController.kt +++ b/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/controllers/LobbyController.kt @@ -25,7 +25,6 @@ import org.springframework.messaging.simp.SimpMessagingTemplate import org.springframework.stereotype.Controller import org.springframework.validation.annotation.Validated import java.security.Principal -import kotlin.time.ExperimentalTime import kotlin.time.milliseconds /** @@ -149,7 +148,6 @@ class LobbyController( template.convertAndSend("/topic/games", GameListEvent.CreateOrUpdate(lobbyDto).wrap()) } - @OptIn(ExperimentalTime::class) @MessageMapping("/lobby/addBot") fun addBot(@Validated action: AddBotAction, principal: Principal) { val lobby = principal.player.ownedLobby diff --git a/sw-server/src/test/kotlin/org/luxons/sevenwonders/server/SevenWondersTest.kt b/sw-server/src/test/kotlin/org/luxons/sevenwonders/server/SevenWondersTest.kt index 7c830140..51daf0c8 100644 --- a/sw-server/src/test/kotlin/org/luxons/sevenwonders/server/SevenWondersTest.kt +++ b/sw-server/src/test/kotlin/org/luxons/sevenwonders/server/SevenWondersTest.kt @@ -1,6 +1,5 @@ package org.luxons.sevenwonders.server -import kotlinx.coroutines.FlowPreview import kotlinx.coroutines.flow.first import kotlinx.coroutines.flow.produceIn import kotlinx.coroutines.launch @@ -21,7 +20,6 @@ import org.springframework.boot.web.server.LocalServerPort import org.springframework.test.context.junit4.SpringRunner import kotlin.test.* -@OptIn(FlowPreview::class) @RunWith(SpringRunner::class) @SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT) class SevenWondersTest { -- cgit