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/TocSetAwayCommand.java | 32 +++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'src/com/wilko/jaim/TocSetAwayCommand.java') diff --git a/src/com/wilko/jaim/TocSetAwayCommand.java b/src/com/wilko/jaim/TocSetAwayCommand.java index a8f4448..382310f 100644 --- a/src/com/wilko/jaim/TocSetAwayCommand.java +++ b/src/com/wilko/jaim/TocSetAwayCommand.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,31 +26,31 @@ package com.wilko.jaim; /** - * - * @author paulw + * @author paulw * @version $version: $ */ public class TocSetAwayCommand extends TocCommand { - private String awayMsg; - - private static String CMD="toc_set_away "; - /** Creates new TocSetInfoCommand + private static final String CMD = "toc_set_away "; + private final String awayMsg; + + /** + * Creates new TocSetInfoCommand + * * @param awayMsg The away message for this user. May contain HTML. To cancel "away" status set the awayMsg to "" */ - + public TocSetAwayCommand(String awayMsg) { - this.awayMsg=Utils.encodeText(awayMsg); + this.awayMsg = Utils.encodeText(awayMsg); } - - - public String toString() - { - return(CMD+awayMsg); + + + public String toString() { + return (CMD + awayMsg); } public byte[] getBytes() { - return(toString().getBytes()); + return (toString().getBytes()); } - + } -- cgit v1.2.3-54-g00ecf