From 9b997d2195c7b797eb542d8774d684a9a1fd5286 Mon Sep 17 00:00:00 2001 From: Hannes Greule Date: Tue, 5 May 2020 11:27:44 +0200 Subject: [PATCH] Make constructor private --- .../plotsquared/core/plot/flag/types/BlockTypeWrapper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/src/main/java/com/plotsquared/core/plot/flag/types/BlockTypeWrapper.java b/Core/src/main/java/com/plotsquared/core/plot/flag/types/BlockTypeWrapper.java index 537515f0a..defeb4470 100644 --- a/Core/src/main/java/com/plotsquared/core/plot/flag/types/BlockTypeWrapper.java +++ b/Core/src/main/java/com/plotsquared/core/plot/flag/types/BlockTypeWrapper.java @@ -61,9 +61,9 @@ public class BlockTypeWrapper { this.blockCategoryId = null; } - public BlockTypeWrapper(@Nullable String blockCategoryId) { + private BlockTypeWrapper(@NotNull final String blockCategoryId) { this.blockType = null; - this.blockCategoryId = blockCategoryId; + this.blockCategoryId = Preconditions.checkNotNull(blockCategoryId); this.blockCategory = null; }