From a060182e49678f7cb3c2e84bf27a68d8ee727abc Mon Sep 17 00:00:00 2001 From: Fuzzlemann Date: Wed, 16 Aug 2017 17:58:27 +0200 Subject: [PATCH] Rename 'message' to 'content' Use 'p' in Message#toArray(Serializable...) --- .../com/djrapitops/plan/locale/Message.java | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/Plan/src/main/java/com/djrapitops/plan/locale/Message.java b/Plan/src/main/java/com/djrapitops/plan/locale/Message.java index 9e8e8dcf2..000e1a36c 100644 --- a/Plan/src/main/java/com/djrapitops/plan/locale/Message.java +++ b/Plan/src/main/java/com/djrapitops/plan/locale/Message.java @@ -10,34 +10,34 @@ import java.io.Serializable; */ public class Message { - private final String message; + private final String content; - public Message(String message) { - this.message = message; + public Message(String content) { + this.content = content; } public String parse(Serializable... p) { - String returnValue = this.message; + String returnValue = this.content; for (int i = 0; i < p.length; i++) { returnValue = returnValue.replace("REPLACE" + i, p[i].toString()); } return returnValue; } - @Override - public String toString() { - return message; + public String[] toArray() { + return content.split("\\\\"); + } + + public String[] toArray(Serializable... p) { + return parse(p).split("\\\\"); } public String parse() { return toString(); } - public String[] toArray() { - return message.split("\\\\"); - } - - public String[] toArray(Serializable... p) { - return parse().split("\\\\"); + @Override + public String toString() { + return content; } }