From d6b58f43646ef0b2ab92291a0f096a240db7edc6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 3 Jun 2017 11:14:43 +0200 Subject: [PATCH] =?utf8?q?Add=20@Nonnull=20to=20SoneProvider=E2=80=99s=20g?= =?utf8?q?etSones()=20method?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/java/net/pterodactylus/sone/core/Core.java | 1 + src/main/java/net/pterodactylus/sone/database/SoneProvider.java | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index 4474e46..37ef0ac 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -317,6 +317,7 @@ public class Core extends AbstractService implements SoneProvider, PostProvider, /** * {@inheritDocs} */ + @Nonnull @Override public Collection getSones() { return database.getSones(); diff --git a/src/main/java/net/pterodactylus/sone/database/SoneProvider.java b/src/main/java/net/pterodactylus/sone/database/SoneProvider.java index a39ceff..69f7eaf 100644 --- a/src/main/java/net/pterodactylus/sone/database/SoneProvider.java +++ b/src/main/java/net/pterodactylus/sone/database/SoneProvider.java @@ -19,6 +19,8 @@ package net.pterodactylus.sone.database; import java.util.Collection; +import javax.annotation.Nonnull; + import net.pterodactylus.sone.core.Core; import net.pterodactylus.sone.data.Sone; @@ -51,6 +53,7 @@ public interface SoneProvider { * * @return All Sones */ + @Nonnull public Collection getSones(); /** -- 2.7.4