From: David ‘Bombe’ Roden Date: Sat, 3 Jun 2017 09:14:43 +0000 (+0200) Subject: Add @Nonnull to SoneProvider’s getSones() method X-Git-Tag: 0.9.7^2~186 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=d6b58f43646ef0b2ab92291a0f096a240db7edc6;p=Sone.git Add @Nonnull to SoneProvider’s getSones() method --- 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(); /**