From f593980fe24351206237e7f125d97923afebd3a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hasan=20Demirta=C5=9F?= Date: Mon, 30 Sep 2024 21:24:09 +0300 Subject: [PATCH] fix. --- .../main/java/net/infumia/frame/config/ViewConfigImpl.java | 4 +--- .../main/java/net/infumia/frame/config/ViewConfigRich.java | 4 ---- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/core/src/main/java/net/infumia/frame/config/ViewConfigImpl.java b/core/src/main/java/net/infumia/frame/config/ViewConfigImpl.java index 9fbafd4..a8581cb 100644 --- a/core/src/main/java/net/infumia/frame/config/ViewConfigImpl.java +++ b/core/src/main/java/net/infumia/frame/config/ViewConfigImpl.java @@ -6,7 +6,6 @@ import java.util.Map; import java.util.Optional; import net.infumia.frame.type.InvType; -import net.infumia.frame.util.Preconditions; import net.infumia.frame.view.config.ViewConfigModifier; import net.infumia.frame.view.config.option.ViewConfigOption; import org.jetbrains.annotations.NotNull; @@ -25,7 +24,6 @@ final class ViewConfigImpl implements ViewConfigRich { final Duration interactionDelay; ViewConfigImpl(@NotNull final ViewConfigBuilderImpl builder) { - Preconditions.argumentNotNull(builder.title, "Title cannot be null!"); this.options = Collections.unmodifiableMap(builder.options); this.modifiers = Collections.unmodifiableCollection(builder.modifiers); this.title = builder.title; @@ -36,7 +34,7 @@ final class ViewConfigImpl implements ViewConfigRich { this.interactionDelay = builder.interactionDelay; } - @NotNull + @Nullable @Override public Object title() { return this.title; diff --git a/core/src/main/java/net/infumia/frame/config/ViewConfigRich.java b/core/src/main/java/net/infumia/frame/config/ViewConfigRich.java index 6b61c40..c3e70a0 100644 --- a/core/src/main/java/net/infumia/frame/config/ViewConfigRich.java +++ b/core/src/main/java/net/infumia/frame/config/ViewConfigRich.java @@ -5,10 +5,6 @@ import org.jetbrains.annotations.NotNull; public interface ViewConfigRich extends ViewConfig, ViewConfigOptionController { - @NotNull - @Override - Object title(); - @NotNull ViewConfigBuilderRich toBuilder(); }