diff options
author | joffrey-bion <joffrey.bion@gmail.com> | 2021-02-10 17:14:27 +0100 |
---|---|---|
committer | joffrey-bion <joffrey.bion@gmail.com> | 2021-02-10 17:14:27 +0100 |
commit | df9ac938d7f101ffe077751fe2b59a65be940fa8 (patch) | |
tree | 29841267710b73b0e74d675cb9f4da8443047f4a /sw-server/src | |
parent | Better connection logs (diff) | |
download | seven-wonders-df9ac938d7f101ffe077751fe2b59a65be940fa8.tar.gz seven-wonders-df9ac938d7f101ffe077751fe2b59a65be940fa8.tar.bz2 seven-wonders-df9ac938d7f101ffe077751fe2b59a65be940fa8.zip |
Cleanup experimental annotations
Diffstat (limited to 'sw-server/src')
3 files changed, 0 insertions, 6 deletions
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 { |