aboutsummaryrefslogtreecommitdiff
path: root/src/com/wilko/jaim/TocEvilCommand.java
diff options
context:
space:
mode:
authorFrankie B <git@diskfloppy.me>2024-05-10 00:32:34 +0100
committerFrankie B <git@diskfloppy.me>2024-05-10 00:32:34 +0100
commit3faced7068a8401b57be8949e80ce4f4da4a0fb5 (patch)
tree32e76b06780fe6c14ddb4917d3ad0b222fa9c596 /src/com/wilko/jaim/TocEvilCommand.java
parenta1dff2cb8d33b17bc5981f1638cd50266713e98f (diff)
Format all code, add editorconfig
Diffstat (limited to 'src/com/wilko/jaim/TocEvilCommand.java')
-rw-r--r--src/com/wilko/jaim/TocEvilCommand.java44
1 files changed, 21 insertions, 23 deletions
diff --git a/src/com/wilko/jaim/TocEvilCommand.java b/src/com/wilko/jaim/TocEvilCommand.java
index b76f409..7ef1caa 100644
--- a/src/com/wilko/jaim/TocEvilCommand.java
+++ b/src/com/wilko/jaim/TocEvilCommand.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,36 +26,34 @@
package com.wilko.jaim;
/**
- *
- * @author paulw
+ * @author paulw
* @version $Revision: 1.3 $
*/
public class TocEvilCommand extends TocCommand {
- private String buddy;
- private boolean anonymous;
-
- /** Creates new TocEvilCommand */
+ private final String buddy;
+ private final boolean anonymous;
+
+ /**
+ * Creates new TocEvilCommand
+ */
public TocEvilCommand(String buddy, boolean anonymous) {
- this.buddy=Utils.normalise(buddy);
- this.anonymous=anonymous;
+ this.buddy = Utils.normalise(buddy);
+ this.anonymous = anonymous;
}
-
- public String toString()
- {
- String ret="toc_evil "+buddy;
- if (anonymous)
- {
- ret=ret+" anon";
- }
- else
- ret=ret+" norm";
-
- return(ret);
+
+ public String toString() {
+ String ret = "toc_evil " + buddy;
+ if (anonymous) {
+ ret = ret + " anon";
+ } else
+ ret = ret + " norm";
+
+ return (ret);
}
-
+
public byte[] getBytes() {
return toString().getBytes();
}
-
+
}