From 35c60733d10312e8fd5a766f8931a7b82251d4d5 Mon Sep 17 00:00:00 2001 From: TheMode Date: Wed, 28 Apr 2021 14:05:20 +0200 Subject: [PATCH] Dont deprecate setDefaultValue with constant result --- .../minestom/server/command/builder/arguments/Argument.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main/java/net/minestom/server/command/builder/arguments/Argument.java b/src/main/java/net/minestom/server/command/builder/arguments/Argument.java index 22c67eb29..4cff3f232 100644 --- a/src/main/java/net/minestom/server/command/builder/arguments/Argument.java +++ b/src/main/java/net/minestom/server/command/builder/arguments/Argument.java @@ -195,11 +195,7 @@ public abstract class Argument { return this; } - /** - * @deprecated use {@link #setDefaultValue(Supplier)} - */ @NotNull - @Deprecated public Argument setDefaultValue(@Nullable T defaultValue) { this.defaultValue = () -> defaultValue; return this;