diff options
author | Frankie B <git@diskfloppy.me> | 2024-05-10 00:32:34 +0100 |
---|---|---|
committer | Frankie B <git@diskfloppy.me> | 2024-05-10 00:32:34 +0100 |
commit | 3faced7068a8401b57be8949e80ce4f4da4a0fb5 (patch) | |
tree | 32e76b06780fe6c14ddb4917d3ad0b222fa9c596 /src/com/wilko/jaim/TocIMCommand.java | |
parent | a1dff2cb8d33b17bc5981f1638cd50266713e98f (diff) |
Format all code, add editorconfig
Diffstat (limited to 'src/com/wilko/jaim/TocIMCommand.java')
-rw-r--r-- | src/com/wilko/jaim/TocIMCommand.java | 38 |
1 files changed, 19 insertions, 19 deletions
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()); } - + } |