From 3faced7068a8401b57be8949e80ce4f4da4a0fb5 Mon Sep 17 00:00:00 2001 From: Frankie B Date: Fri, 10 May 2024 00:32:34 +0100 Subject: Format all code, add editorconfig --- src/com/wilko/jaim/TocIMCommand.java | 38 ++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'src/com/wilko/jaim/TocIMCommand.java') diff --git a/src/com/wilko/jaim/TocIMCommand.java b/src/com/wilko/jaim/TocIMCommand.java index eec6dc0..7a43319 100644 --- a/src/com/wilko/jaim/TocIMCommand.java +++ b/src/com/wilko/jaim/TocIMCommand.java @@ -1,4 +1,4 @@ -/* +/* * (C) 2002 Paul Wilkinson wilko@users.sourceforge.net * * This program is free software; you can redistribute it and/or modify @@ -26,33 +26,33 @@ package com.wilko.jaim; /** - * - * @author paulw + * @author paulw * @version $Revision: 1.4 $ */ public class TocIMCommand extends TocCommand { - private String recipient; - private String msg; - private String auto; - - /** Creates new TocIMCommand */ - public TocIMCommand(String recipient, String msg,boolean autoMessage) { - this.recipient=Utils.normalise(recipient); - this.msg=Utils.encodeText(msg); + private final String recipient; + private final String msg; + private final String auto; + + /** + * Creates new TocIMCommand + */ + public TocIMCommand(String recipient, String msg, boolean autoMessage) { + this.recipient = Utils.normalise(recipient); + this.msg = Utils.encodeText(msg); if (autoMessage) - auto=" auto"; + auto = " auto"; else - auto=""; + auto = ""; } - public String toString() - { - return ("toc_send_im "+recipient+" "+msg+auto); + public String toString() { + return ("toc_send_im " + recipient + " " + msg + auto); } - + public byte[] getBytes() { - return(this.toString().getBytes()); + return (this.toString().getBytes()); } - + } -- cgit v1.2.3-54-g00ecf