From 07dea8de0ececbfe3b782c7eb6cf56fdfadc147a Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 5 Sep 2017 11:41:20 +0200 Subject: [PATCH] Add annotation to to-override method --- src/main/java/net/pterodactylus/sone/web/ajax/JsonPage.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.7.4