From: David ‘Bombe’ Roden Date: Tue, 5 Sep 2017 09:41:20 +0000 (+0200) Subject: Add annotation to to-override method X-Git-Tag: 0.9.7^2~89 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=07dea8de0ececbfe3b782c7eb6cf56fdfadc147a;p=Sone.git Add annotation to to-override method --- diff --git a/src/main/java/net/pterodactylus/sone/web/ajax/JsonPage.java b/src/main/java/net/pterodactylus/sone/web/ajax/JsonPage.java index 2f84d27..8ddbacd 100644 --- a/src/main/java/net/pterodactylus/sone/web/ajax/JsonPage.java +++ b/src/main/java/net/pterodactylus/sone/web/ajax/JsonPage.java @@ -100,7 +100,8 @@ public abstract class JsonPage implements FreenetPage { * The request to handle * @return The created JSON object */ - protected abstract JsonReturnObject createJsonObject(FreenetRequest request); + @Nonnull + protected abstract JsonReturnObject createJsonObject(@Nonnull FreenetRequest request); /** * Returns whether this command needs the form password for authentication