From ec2985bc968961cec8d1add37bd9e0423d7e34af Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 1 Jan 2025 20:24:22 +0100 Subject: [PATCH] =?utf8?q?=F0=9F=97=91=EF=B8=8F=20Deprecate=20GetConfig=20?= =?utf8?q?constructor=20without=20identifier?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/java/net/pterodactylus/fcp/GetConfig.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/main/java/net/pterodactylus/fcp/GetConfig.java b/src/main/java/net/pterodactylus/fcp/GetConfig.java index 2f7d2e6..6e4ab0a 100644 --- a/src/main/java/net/pterodactylus/fcp/GetConfig.java +++ b/src/main/java/net/pterodactylus/fcp/GetConfig.java @@ -27,14 +27,19 @@ public class GetConfig extends FcpMessage { /** * Creates a new “GetConfig” command. + * + * @deprecated Use {@link #GetConfig(String)} instead */ + @Deprecated public GetConfig() { - super("GetConfig"); + this(null); } public GetConfig(String identifer) { - this(); - setField("Identifier", identifer); + super("GetConfig"); + if (identifer != null) { + setField("Identifier", identifer); + } } /** -- 2.7.4