Specify return type explicitely to avoid faulty inferring
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 5 Oct 2017 19:00:10 +0000 (21:00 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 5 Oct 2017 19:00:10 +0000 (21:00 +0200)
src/main/kotlin/net/pterodactylus/sone/web/ajax/LoggedInJsonPage.kt

index acf1d73..5cdee64 100644 (file)
@@ -14,7 +14,7 @@ open class LoggedInJsonPage(path: String, webInterface: WebInterface) : JsonPage
        final override fun createJsonObject(request: FreenetRequest) =
                        createJsonObject(getCurrentSone(request.toadletContext)!!, request)
 
-       open protected fun createJsonObject(currentSone: Sone, request: FreenetRequest) =
+       open protected fun createJsonObject(currentSone: Sone, request: FreenetRequest): JsonReturnObject =
                        createErrorJsonObject("not-implemented")
 
 }