From: David ‘Bombe’ Roden Date: Tue, 7 Apr 2020 09:22:45 +0000 (+0200) Subject: 🚨 Suppress deprecation warning X-Git-Tag: v82^2~29 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=f32ec09442b57d34841392fb98a0ef055dd9f349;p=Sone.git 🚨 Suppress deprecation warning --- diff --git a/src/test/kotlin/net/pterodactylus/sone/web/page/PageToadletTest.kt b/src/test/kotlin/net/pterodactylus/sone/web/page/PageToadletTest.kt index 1d6f26c..24f2b2d 100644 --- a/src/test/kotlin/net/pterodactylus/sone/web/page/PageToadletTest.kt +++ b/src/test/kotlin/net/pterodactylus/sone/web/page/PageToadletTest.kt @@ -201,6 +201,7 @@ private open class DelegatingToadletContext(private val toadletContext: ToadletC override fun forceDisconnect() = toadletContext.forceDisconnect() override fun sendReplyHeaders(code: Int, desc: String?, mvt: MultiValueTable?, mimeType: String?, length: Long) = toadletContext.sendReplyHeaders(code, desc, mvt, mimeType, length) override fun sendReplyHeaders(code: Int, desc: String?, mvt: MultiValueTable?, mimeType: String?, length: Long, forceDisableJavascript: Boolean) = toadletContext.sendReplyHeaders(code, desc, mvt, mimeType, length, forceDisableJavascript) + @Suppress("DEPRECATION") override fun sendReplyHeaders(code: Int, desc: String?, mvt: MultiValueTable?, mimeType: String?, length: Long, mTime: Date?) = toadletContext.sendReplyHeaders(code, desc, mvt, mimeType, length, mTime) override fun getUri(): URI = toadletContext.uri override fun getPageMaker(): PageMaker = toadletContext.pageMaker