From: David ‘Bombe’ Roden Date: Wed, 1 Jan 2025 19:24:22 +0000 (+0100) Subject: 🗑️ Deprecate GetConfig constructor without identifier X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=ec2985bc968961cec8d1add37bd9e0423d7e34af;p=jFCPlib.git 🗑️ Deprecate GetConfig constructor without identifier --- 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); + } } /**