From: David ‘Bombe’ Roden Date: Tue, 24 Nov 2015 19:26:18 +0000 (+0100) Subject: Expose methods to access fields X-Git-Tag: v0.1.4^2~19 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=b596725d51583cbb201700b0487cd69f1a908707;p=jFCPlib.git Expose methods to access fields --- diff --git a/src/main/java/net/pterodactylus/fcp/BaseMessage.java b/src/main/java/net/pterodactylus/fcp/BaseMessage.java index a5ea020..cca7d67 100644 --- a/src/main/java/net/pterodactylus/fcp/BaseMessage.java +++ b/src/main/java/net/pterodactylus/fcp/BaseMessage.java @@ -57,7 +57,7 @@ public class BaseMessage { * @return The content of the field, or null if there is no * such field */ - protected String getField(String field) { + public String getField(String field) { return receivedMessage.getField(field); } @@ -67,7 +67,7 @@ public class BaseMessage { * @see FcpMessage#getFields() * @return All fields from the message */ - protected Map getFields() { + public Map getFields() { return receivedMessage.getFields(); }