From: David ‘Bombe’ Roden Date: Thu, 7 Sep 2017 12:18:17 +0000 (+0200) Subject: Add some @Nullable annotations X-Git-Tag: 0.9.7^2~86 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=c15282bde35edc08ca63f1114a29a7a0d68cfd5f;p=Sone.git Add some @Nullable annotations --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index 37ef0ac..66677de 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -554,6 +554,7 @@ public class Core extends AbstractService implements SoneProvider, PostProvider, * The ID of the image * @return The image with the given ID */ + @Nullable public Image getImage(String imageId) { return getImage(imageId, true); } @@ -570,6 +571,7 @@ public class Core extends AbstractService implements SoneProvider, PostProvider, * @return The image with the given ID, or {@code null} if none exists and * none was created */ + @Nullable public Image getImage(String imageId, boolean create) { Optional image = database.getImage(imageId); if (image.isPresent()) {