From 31d92961b7670c4983d620352e9cd5ce7ffb4a9d Mon Sep 17 00:00:00 2001 From: Florian CUNY Date: Sat, 11 Jan 2020 11:21:15 +0100 Subject: [PATCH] Added some nullability annotations in BlueprintsManager --- .../world/bentobox/bentobox/managers/BlueprintsManager.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/world/bentobox/bentobox/managers/BlueprintsManager.java b/src/main/java/world/bentobox/bentobox/managers/BlueprintsManager.java index f4329d082..9556916a8 100644 --- a/src/main/java/world/bentobox/bentobox/managers/BlueprintsManager.java +++ b/src/main/java/world/bentobox/bentobox/managers/BlueprintsManager.java @@ -141,6 +141,7 @@ public class BlueprintsManager { * * @param addon the {@link GameModeAddon} to get the blueprint bundles. */ + @NonNull public Map getBlueprintBundles(@NonNull GameModeAddon addon) { if (!blueprintBundles.containsKey(addon)) { return new HashMap<>(); @@ -154,6 +155,7 @@ public class BlueprintsManager { * @return the default blueprint bundle or null if none * @since 1.8.0 */ + @Nullable public BlueprintBundle getDefaultBlueprintBundle(@NonNull GameModeAddon addon) { if (blueprintBundles.containsKey(addon)) { return blueprintBundles.get(addon).stream().filter(bb -> bb.getUniqueId().equals(DEFAULT_BUNDLE_NAME)).findFirst().orElse(null);