Specify return type explicitely to avoid faulty inferring
[Sone.git] / 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")
 
 }