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/TocAddPermitCommand.java | 42 ++++++++++++++--------------- 1 file changed, 20 insertions(+), 22 deletions(-) (limited to 'src/com/wilko/jaim/TocAddPermitCommand.java') diff --git a/src/com/wilko/jaim/TocAddPermitCommand.java b/src/com/wilko/jaim/TocAddPermitCommand.java index 82ec8c7..05c1830 100644 --- a/src/com/wilko/jaim/TocAddPermitCommand.java +++ b/src/com/wilko/jaim/TocAddPermitCommand.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 @@ -28,40 +28,38 @@ package com.wilko.jaim; import java.util.Vector; /** - * - * @author paulw + * @author paulw * @version $Revision: 1.1 $ */ public class TocAddPermitCommand extends TocCommand { - private static String CMD="toc_add_permit"; - + private static final String CMD = "toc_add_permit"; + Vector buddyList; - - /** Creates new TocAddBuddyCommand */ + + /** + * Creates new TocAddBuddyCommand + */ public TocAddPermitCommand() { - buddyList=new Vector(); + buddyList = new Vector(); } - public void addPermit(String buddy) - { + public void addPermit(String buddy) { buddyList.add(Utils.normalise(buddy)); } - - public String toString() - { - StringBuffer output=new StringBuffer(CMD); - for (int i=0;i