瀏覽代碼

Remove trailing spaces

Change-Id: I9f382ab3d7b078fb759cbaca618bec5d21b8b5d9
Reviewed-on: http://gerrit.dmdirc.com/1919
Reviewed-by: Greg Holmes <greg@dmdirc.com>
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com>
tags/0.6.6b1
Chris Smith 13 年之前
父節點
當前提交
f2018c541b
共有 66 個文件被更改,包括 333 次插入333 次删除
  1. 3
    3
      src/com/dmdirc/FrameContainer.java
  2. 11
    11
      src/com/dmdirc/Invite.java
  3. 1
    1
      src/com/dmdirc/MessageTarget.java
  4. 3
    3
      src/com/dmdirc/Precondition.java
  5. 1
    1
      src/com/dmdirc/ServerStatus.java
  6. 5
    5
      src/com/dmdirc/actions/interfaces/ActionType.java
  7. 9
    9
      src/com/dmdirc/actions/metatypes/ActionEvents.java
  8. 9
    9
      src/com/dmdirc/actions/metatypes/ClientEvents.java
  9. 9
    9
      src/com/dmdirc/actions/metatypes/QueryEvents.java
  10. 3
    3
      src/com/dmdirc/actions/validators/ActionGroupValidator.java
  11. 3
    3
      src/com/dmdirc/actions/validators/ActionNameValidator.java
  12. 5
    5
      src/com/dmdirc/actions/validators/ConditionRuleValidator.java
  13. 1
    1
      src/com/dmdirc/commandparser/CommandArguments.java
  14. 5
    5
      src/com/dmdirc/commandparser/CommandInfo.java
  15. 2
    2
      src/com/dmdirc/commandparser/CommandType.java
  16. 3
    3
      src/com/dmdirc/commandparser/commands/ExternalCommand.java
  17. 5
    5
      src/com/dmdirc/commandparser/commands/channel/ChannelSettings.java
  18. 5
    5
      src/com/dmdirc/commandparser/commands/channel/Cycle.java
  19. 5
    5
      src/com/dmdirc/commandparser/commands/channel/Part.java
  20. 1
    1
      src/com/dmdirc/commandparser/commands/flags/CommandFlag.java
  21. 1
    1
      src/com/dmdirc/commandparser/commands/flags/CommandFlagHandler.java
  22. 9
    9
      src/com/dmdirc/commandparser/commands/global/Active.java
  23. 9
    9
      src/com/dmdirc/commandparser/commands/global/Clear.java
  24. 2
    2
      src/com/dmdirc/commandparser/commands/global/NewServer.java
  25. 7
    7
      src/com/dmdirc/commandparser/commands/global/ReloadActions.java
  26. 5
    5
      src/com/dmdirc/commandparser/commands/global/ReloadIdentities.java
  27. 4
    4
      src/com/dmdirc/commandparser/commands/global/Set.java
  28. 8
    8
      src/com/dmdirc/commandparser/commands/server/AllChannels.java
  29. 7
    7
      src/com/dmdirc/commandparser/commands/server/Away.java
  30. 10
    10
      src/com/dmdirc/commandparser/commands/server/Ctcp.java
  31. 8
    8
      src/com/dmdirc/commandparser/commands/server/Ignore.java
  32. 9
    9
      src/com/dmdirc/commandparser/commands/server/Message.java
  33. 4
    4
      src/com/dmdirc/commandparser/commands/server/Umode.java
  34. 1
    1
      src/com/dmdirc/commandparser/parsers/ChatCommandParser.java
  35. 3
    3
      src/com/dmdirc/commandparser/validators/CommandNameValidator.java
  36. 10
    10
      src/com/dmdirc/config/ConfigSource.java
  37. 1
    1
      src/com/dmdirc/config/ConfigTarget.java
  38. 2
    2
      src/com/dmdirc/config/Identity.java
  39. 6
    6
      src/com/dmdirc/config/InvalidIdentityFileException.java
  40. 4
    4
      src/com/dmdirc/config/prefs/CategoryChangeListener.java
  41. 3
    3
      src/com/dmdirc/config/prefs/PreferencesInterface.java
  42. 1
    1
      src/com/dmdirc/config/prefs/PreferencesSetting.java
  43. 2
    2
      src/com/dmdirc/interfaces/ActionListener.java
  44. 4
    4
      src/com/dmdirc/interfaces/AwayStateListener.java
  45. 5
    5
      src/com/dmdirc/interfaces/InviteListener.java
  46. 6
    6
      src/com/dmdirc/interfaces/NicklistListener.java
  47. 6
    6
      src/com/dmdirc/logger/ErrorFixedStatus.java
  48. 9
    9
      src/com/dmdirc/logger/ErrorLevel.java
  49. 6
    6
      src/com/dmdirc/logger/ErrorReportStatus.java
  50. 8
    8
      src/com/dmdirc/logger/Logger.java
  51. 3
    3
      src/com/dmdirc/logger/NullOutputStream.java
  52. 1
    1
      src/com/dmdirc/plugins/PluginClassLoader.java
  53. 9
    9
      src/com/dmdirc/tls/CertificateManager.java
  54. 2
    2
      src/com/dmdirc/ui/core/components/WindowComponent.java
  55. 1
    1
      src/com/dmdirc/ui/core/dialogs/sslcertificate/CertificateInformationEntry.java
  56. 4
    4
      src/com/dmdirc/ui/core/dialogs/sslcertificate/SSLCertificateDialogModel.java
  57. 4
    4
      src/com/dmdirc/ui/core/util/ExtendedAttributedString.java
  58. 2
    2
      src/com/dmdirc/ui/input/TabCompletionType.java
  59. 6
    6
      src/com/dmdirc/ui/input/tabstyles/TabCompletionResult.java
  60. 6
    6
      src/com/dmdirc/ui/interfaces/InputValidationListener.java
  61. 6
    6
      src/com/dmdirc/ui/interfaces/SearchBar.java
  62. 2
    2
      src/com/dmdirc/ui/interfaces/StatusBarComponent.java
  63. 9
    9
      src/com/dmdirc/ui/messages/IRCTextAttribute.java
  64. 3
    3
      src/com/dmdirc/updater/FileComponent.java
  65. 6
    6
      src/com/dmdirc/updater/UpdateListener.java
  66. 20
    20
      src/net/miginfocom/Base64.java

+ 3
- 3
src/com/dmdirc/FrameContainer.java 查看文件

@@ -77,7 +77,7 @@ public abstract class FrameContainer {
77 77
 
78 78
     /**
79 79
      * The class of windows we want to represent this container.
80
-     * 
80
+     *
81 81
      * @deprecated Replaced with {@link #components}
82 82
      */
83 83
     @Deprecated
@@ -100,7 +100,7 @@ public abstract class FrameContainer {
100 100
 
101 101
     /** The IconChanger for this container. */
102 102
     private final IconChanger changer = new IconChanger();
103
-    
103
+
104 104
     /** The UI components that this frame requires. */
105 105
     private final Set<String> components;
106 106
 
@@ -276,7 +276,7 @@ public abstract class FrameContainer {
276 276
             listener.titleChanged(this, title);
277 277
         }
278 278
     }
279
-    
279
+
280 280
     /**
281 281
      * Returns the collection of UI component identifiers that this frame
282 282
      * container requires for its display.

+ 11
- 11
src/com/dmdirc/Invite.java 查看文件

@@ -30,22 +30,22 @@ import java.util.Date;
30 30
  * @author Chris
31 31
  */
32 32
 public class Invite {
33
-    
33
+
34 34
     /** The server this invite was on. */
35 35
     private final Server server;
36
-    
36
+
37 37
     /** The channel this invite is for. */
38 38
     private final String channel;
39
-    
39
+
40 40
     /** The time this invite was created. */
41 41
     private final long timestamp;
42
-    
42
+
43 43
     /** The source of this invite. */
44 44
     private final String source;
45
-    
45
+
46 46
     /**
47 47
      * Creates a new instance of Invite.
48
-     * 
48
+     *
49 49
      * @param server The server that this invite was received for
50 50
      * @param channel The channel that this invite is for
51 51
      * @param source The source of this invite
@@ -59,7 +59,7 @@ public class Invite {
59 59
 
60 60
     /**
61 61
      * Retrieves the server that this invite is associated with.
62
-     * 
62
+     *
63 63
      * @return This invite's server
64 64
      */
65 65
     public Server getServer() {
@@ -68,7 +68,7 @@ public class Invite {
68 68
 
69 69
     /**
70 70
      * Retrieves the name of the channel that this invite is for.
71
-     * 
71
+     *
72 72
      * @return This invite's channel
73 73
      */
74 74
     public String getChannel() {
@@ -77,7 +77,7 @@ public class Invite {
77 77
 
78 78
     /**
79 79
      * Retrieves the timestamp that this invite was received at.
80
-     * 
80
+     *
81 81
      * @return This invite's timestamp
82 82
      */
83 83
     public long getTimestamp() {
@@ -86,13 +86,13 @@ public class Invite {
86 86
 
87 87
     /**
88 88
      * Retrieves the nickname, ident and hostname of this invite's source.
89
-     * 
89
+     *
90 90
      * @return This invite's source
91 91
      */
92 92
     public String[] getSource() {
93 93
         return server.parseHostmask(source);
94 94
     }
95
-    
95
+
96 96
     /**
97 97
      * Join the channel that belongs to this invite.
98 98
      */

+ 1
- 1
src/com/dmdirc/MessageTarget.java 查看文件

@@ -36,7 +36,7 @@ public abstract class MessageTarget extends WritableFrameContainer {
36 36
 
37 37
     /**
38 38
      * Creates a new MessageTarget.
39
-     * 
39
+     *
40 40
      * @param icon The icon to use for this target
41 41
      * @param name The name of this target
42 42
      * @param title The title of this target

+ 3
- 3
src/com/dmdirc/Precondition.java 查看文件

@@ -28,7 +28,7 @@ import java.lang.annotation.Documented;
28 28
  * The precondition annotation is used to indicate that a particular method
29 29
  * has one or more preconditions. The preconditions are specified in plain
30 30
  * English.
31
- * 
31
+ *
32 32
  * @author chris
33 33
  */
34 34
 @Documented
@@ -36,9 +36,9 @@ public @interface Precondition {
36 36
 
37 37
     /**
38 38
      * Retrieves the message describing the precondition.
39
-     * 
39
+     *
40 40
      * @return An English description of the precondition
41 41
      */
42 42
     String[] value();
43
-    
43
+
44 44
 }

+ 1
- 1
src/com/dmdirc/ServerStatus.java 查看文件

@@ -154,7 +154,7 @@ public class ServerStatus {
154 154
 
155 155
         final int hashcode = parser.hashCode();
156 156
         int offset;
157
-        
157
+
158 158
         synchronized (parsers) {
159 159
             offset = parsers.indexOf(hashcode);
160 160
 

+ 5
- 5
src/com/dmdirc/actions/interfaces/ActionType.java 查看文件

@@ -27,14 +27,14 @@ package com.dmdirc.actions.interfaces;
27 27
  * @author chris
28 28
  */
29 29
 public interface ActionType {
30
-    
30
+
31 31
     /**
32 32
      * Retrieves the type of this action.
33
-     * 
33
+     *
34 34
      * @return This action's type
35 35
      */
36 36
     ActionMetaType getType();
37
-    
37
+
38 38
     /**
39 39
      * Retrieves this type's friendly name.
40 40
      *
@@ -44,10 +44,10 @@ public interface ActionType {
44 44
 
45 45
     /**
46 46
      * Retrieves this type's internal name.
47
-     * 
47
+     *
48 48
      * @since 0.6.4
49 49
      * @return The internal name of this type
50 50
      */
51 51
     String name();
52
-    
52
+
53 53
 }

+ 9
- 9
src/com/dmdirc/actions/metatypes/ActionEvents.java 查看文件

@@ -29,17 +29,17 @@ import com.dmdirc.actions.interfaces.ActionMetaType;
29 29
  * Defines action-related events.
30 30
  */
31 31
 public enum ActionEvents implements ActionMetaType {
32
-    
32
+
33 33
     /** Action event type. */
34 34
     ACTION_EVENT(new String[]{"action"}, Action.class),
35 35
     /** Action event type. */
36 36
     ACTION_DELETED(new String[]{"Action group", "Action name"}, Action.class, String.class);
37
-    
37
+
38 38
     /** The names of the arguments for this meta type. */
39 39
     private String[] argNames;
40 40
     /** The classes of the arguments for this meta type. */
41 41
     private Class[] argTypes;
42
-    
42
+
43 43
     /**
44 44
      * Creates a new instance of this meta-type.
45 45
      *
@@ -50,29 +50,29 @@ public enum ActionEvents implements ActionMetaType {
50 50
         this.argNames = argNames;
51 51
         this.argTypes = argTypes;
52 52
     }
53
-    
53
+
54 54
     /** {@inheritDoc} */
55 55
     @Override
56 56
     public int getArity() {
57 57
         return argNames.length;
58 58
     }
59
-    
59
+
60 60
     /** {@inheritDoc} */
61 61
     @Override
62 62
     public Class[] getArgTypes() {
63 63
         return argTypes;
64 64
     }
65
-    
65
+
66 66
     /** {@inheritDoc} */
67 67
     @Override
68 68
     public String[] getArgNames() {
69 69
         return argNames;
70 70
     }
71
-    
71
+
72 72
     /** {@inheritDoc} */
73 73
     @Override
74 74
     public String getGroup() {
75 75
         return "Action Events";
76
-    }    
77
-    
76
+    }
77
+
78 78
 }

+ 9
- 9
src/com/dmdirc/actions/metatypes/ClientEvents.java 查看文件

@@ -39,7 +39,7 @@ import javax.swing.text.StyledDocument;
39 39
  * @author Chris
40 40
  */
41 41
 public enum ClientEvents implements ActionMetaType {
42
-    
42
+
43 43
     /** Client event type. */
44 44
     CLIENT_EVENT(new String[]{}),
45 45
     /** Client event type, with a frame argument. */
@@ -60,12 +60,12 @@ public enum ClientEvents implements ActionMetaType {
60 60
     CLIENT_EVENT_WITH_STYLE(new String[]{"styled document", "start offset", "length"}, StyledDocument.class, Integer.class, Integer.class),
61 61
     /** Unknown command event type. */
62 62
     UNKNOWN_COMMAND(new String[]{"source", "command", "arguments"}, FrameContainer.class, String.class, String[].class);
63
-    
63
+
64 64
     /** The names of the arguments for this meta type. */
65 65
     private String[] argNames;
66 66
     /** The classes of the arguments for this meta type. */
67 67
     private Class[] argTypes;
68
-    
68
+
69 69
     /**
70 70
      * Creates a new instance of this meta-type.
71 71
      *
@@ -76,29 +76,29 @@ public enum ClientEvents implements ActionMetaType {
76 76
         this.argNames = argNames;
77 77
         this.argTypes = argTypes;
78 78
     }
79
-    
79
+
80 80
     /** {@inheritDoc} */
81 81
     @Override
82 82
     public int getArity() {
83 83
         return argNames.length;
84 84
     }
85
-    
85
+
86 86
     /** {@inheritDoc} */
87 87
     @Override
88 88
     public Class[] getArgTypes() {
89 89
         return argTypes;
90 90
     }
91
-    
91
+
92 92
     /** {@inheritDoc} */
93 93
     @Override
94 94
     public String[] getArgNames() {
95 95
         return argNames;
96 96
     }
97
-    
97
+
98 98
     /** {@inheritDoc} */
99 99
     @Override
100 100
     public String getGroup() {
101 101
         return "General Events";
102
-    }    
103
-    
102
+    }
103
+
104 104
 }

+ 9
- 9
src/com/dmdirc/actions/metatypes/QueryEvents.java 查看文件

@@ -32,19 +32,19 @@ import com.dmdirc.parser.interfaces.ClientInfo;
32 32
  * @author Chris
33 33
  */
34 34
 public enum QueryEvents implements ActionMetaType {
35
-    
35
+
36 36
     /** Query event type. */
37 37
     QUERY_EVENT(new String[]{"query"}, Query.class),
38 38
     /** Query event with argument. */
39 39
     QUERY_EVENT_WITH_ARG(new String[]{"query", "message"}, Query.class, String.class),
40 40
     /** Query event with argument and source. */
41 41
     QUERY_SOURCED_EVENT_WITH_ARG(new String[]{"query", "source", "message"}, Query.class, ClientInfo.class, String.class);
42
-    
42
+
43 43
     /** The names of the arguments for this meta type. */
44 44
     private String[] argNames;
45 45
     /** The classes of the arguments for this meta type. */
46 46
     private Class[] argTypes;
47
-    
47
+
48 48
     /**
49 49
      * Creates a new instance of this meta-type.
50 50
      *
@@ -55,29 +55,29 @@ public enum QueryEvents implements ActionMetaType {
55 55
         this.argNames = argNames;
56 56
         this.argTypes = argTypes;
57 57
     }
58
-    
58
+
59 59
     /** {@inheritDoc} */
60 60
     @Override
61 61
     public int getArity() {
62 62
         return argNames.length;
63 63
     }
64
-    
64
+
65 65
     /** {@inheritDoc} */
66 66
     @Override
67 67
     public Class[] getArgTypes() {
68 68
         return argTypes;
69 69
     }
70
-    
70
+
71 71
     /** {@inheritDoc} */
72 72
     @Override
73 73
     public String[] getArgNames() {
74 74
         return argNames;
75 75
     }
76
-    
76
+
77 77
     /** {@inheritDoc} */
78 78
     @Override
79 79
     public String getGroup() {
80 80
         return "Query Events";
81
-    }    
82
-    
81
+    }
82
+
83 83
 }

+ 3
- 3
src/com/dmdirc/actions/validators/ActionGroupValidator.java 查看文件

@@ -1,16 +1,16 @@
1 1
 /*
2 2
  * Copyright (c) 2006-2011 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
- * 
3
+ *
4 4
  * Permission is hereby granted, free of charge, to any person obtaining a copy
5 5
  * of this software and associated documentation files (the "Software"), to deal
6 6
  * in the Software without restriction, including without limitation the rights
7 7
  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 8
  * copies of the Software, and to permit persons to whom the Software is
9 9
  * furnished to do so, subject to the following conditions:
10
- * 
10
+ *
11 11
  * The above copyright notice and this permission notice shall be included in
12 12
  * all copies or substantial portions of the Software.
13
- * 
13
+ *
14 14
  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 15
  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 16
  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE

+ 3
- 3
src/com/dmdirc/actions/validators/ActionNameValidator.java 查看文件

@@ -1,16 +1,16 @@
1 1
 /*
2 2
  * Copyright (c) 2006-2011 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
- * 
3
+ *
4 4
  * Permission is hereby granted, free of charge, to any person obtaining a copy
5 5
  * of this software and associated documentation files (the "Software"), to deal
6 6
  * in the Software without restriction, including without limitation the rights
7 7
  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 8
  * copies of the Software, and to permit persons to whom the Software is
9 9
  * furnished to do so, subject to the following conditions:
10
- * 
10
+ *
11 11
  * The above copyright notice and this permission notice shall be included in
12 12
  * all copies or substantial portions of the Software.
13
- * 
13
+ *
14 14
  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 15
  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 16
  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE

+ 5
- 5
src/com/dmdirc/actions/validators/ConditionRuleValidator.java 查看文件

@@ -1,16 +1,16 @@
1 1
 /*
2 2
  * Copyright (c) 2006-2011 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
- * 
3
+ *
4 4
  * Permission is hereby granted, free of charge, to any person obtaining a copy
5 5
  * of this software and associated documentation files (the "Software"), to deal
6 6
  * in the Software without restriction, including without limitation the rights
7 7
  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 8
  * copies of the Software, and to permit persons to whom the Software is
9 9
  * furnished to do so, subject to the following conditions:
10
- * 
10
+ *
11 11
  * The above copyright notice and this permission notice shall be included in
12 12
  * all copies or substantial portions of the Software.
13
- * 
13
+ *
14 14
  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 15
  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 16
  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
@@ -43,10 +43,10 @@ public class ConditionRuleValidator implements Validator<String> {
43 43
     public ConditionRuleValidator(final int args) {
44 44
         this.args = args;
45 45
     }
46
-    
46
+
47 47
     /**
48 48
      * Updates the number of arguments used to validate the condition tree.
49
-     * 
49
+     *
50 50
      * @param args New number of arguments
51 51
      */
52 52
     public void setArgs(final int args) {

+ 1
- 1
src/com/dmdirc/commandparser/CommandArguments.java 查看文件

@@ -145,7 +145,7 @@ public class CommandArguments {
145 145
      */
146 146
     public String getArgumentsAsString(final int start) {
147 147
         parse();
148
-        
148
+
149 149
         return getArgumentsAsString(start, words.length - 2);
150 150
     }
151 151
 

+ 5
- 5
src/com/dmdirc/commandparser/CommandInfo.java 查看文件

@@ -24,25 +24,25 @@ package com.dmdirc.commandparser;
24 24
 
25 25
 /**
26 26
  * Describes a command.
27
- * 
27
+ *
28 28
  * @author chris
29 29
  */
30 30
 public interface CommandInfo {
31
-          
31
+
32 32
     /**
33 33
      * Returns this command's name.
34 34
      *
35 35
      * @return The name of this command
36 36
      */
37 37
     String getName();
38
-    
38
+
39 39
     /**
40 40
      * Returns whether or not this command should be shown in help messages.
41 41
      *
42 42
      * @return True iff the command should be shown, false otherwise
43 43
      */
44 44
     boolean showInHelp();
45
-    
45
+
46 46
     /**
47 47
      * Returns a string representing the help message for this command.
48 48
      * <p>
@@ -62,7 +62,7 @@ public interface CommandInfo {
62 62
      * @return the help message for this command
63 63
      */
64 64
     String getHelp();
65
-    
65
+
66 66
     /**
67 67
      * Retrieves the type of this command.
68 68
      *

+ 2
- 2
src/com/dmdirc/commandparser/CommandType.java 查看文件

@@ -24,11 +24,11 @@ package com.dmdirc.commandparser;
24 24
 
25 25
 /**
26 26
  * Defines the possible targets for commands.
27
- * 
27
+ *
28 28
  * @author chris
29 29
  */
30 30
 public enum CommandType {
31
-    
31
+
32 32
     /** A global command, which may be executed anywhere. */
33 33
     TYPE_GLOBAL,
34 34
     /** A server command, which only makes sense in the context of a connection. */

+ 3
- 3
src/com/dmdirc/commandparser/commands/ExternalCommand.java 查看文件

@@ -28,14 +28,14 @@ import com.dmdirc.commandparser.CommandArguments;
28 28
 /**
29 29
  * An external command is a channel command that can be executed from outside
30 30
  * of the channel.
31
- * 
31
+ *
32 32
  * @author chris
33 33
  */
34 34
 public interface ExternalCommand {
35
-    
35
+
36 36
     /**
37 37
      * Executes the command externally.
38
-     * 
38
+     *
39 39
      * @param origin The window in which the command was typed
40 40
      * @param server The server instance that this command is being executed on
41 41
      * @param channel The name of the channel the command is being executed for

+ 5
- 5
src/com/dmdirc/commandparser/commands/channel/ChannelSettings.java 查看文件

@@ -40,12 +40,12 @@ import com.dmdirc.ui.input.AdditionalTabTargets;
40 40
 @CommandOptions(allowOffline=false)
41 41
 public final class ChannelSettings extends Command implements
42 42
         IntelligentCommand, CommandInfo {
43
-    
43
+
44 44
     /** Creates a new instance of ChannelSettings. */
45 45
     public ChannelSettings() {
46 46
         super();
47 47
     }
48
-    
48
+
49 49
     /** {@inheritDoc} */
50 50
     @Override
51 51
     public void execute(final FrameContainer origin,
@@ -53,13 +53,13 @@ public final class ChannelSettings extends Command implements
53 53
         context.getSource().getController().showChannelSettingsDialog(
54 54
                 ((ChannelCommandContext) context).getChannel());
55 55
     }
56
-    
56
+
57 57
     /** {@inheritDoc} */
58 58
     @Override
59 59
     public String getName() {
60 60
         return "channelsettings";
61 61
     }
62
-    
62
+
63 63
     /** {@inheritDoc} */
64 64
     @Override
65 65
     public boolean showInHelp() {
@@ -71,7 +71,7 @@ public final class ChannelSettings extends Command implements
71 71
     public CommandType getType() {
72 72
         return CommandType.TYPE_CHANNEL;
73 73
     }
74
-    
74
+
75 75
     /** {@inheritDoc} */
76 76
     @Override
77 77
     public String getHelp() {

+ 5
- 5
src/com/dmdirc/commandparser/commands/channel/Cycle.java 查看文件

@@ -39,12 +39,12 @@ import com.dmdirc.commandparser.commands.context.CommandContext;
39 39
  */
40 40
 @CommandOptions(allowOffline=false)
41 41
 public final class Cycle extends Command implements CommandInfo {
42
-    
42
+
43 43
     /** Creates a new instance of Cycle. */
44 44
     public Cycle() {
45 45
         super();
46 46
     }
47
-    
47
+
48 48
     /** {@inheritDoc} */
49 49
     @Override
50 50
     public void execute(final FrameContainer origin,
@@ -54,13 +54,13 @@ public final class Cycle extends Command implements CommandInfo {
54 54
                 : origin.getConfigManager().getOption("general", "cyclemessage"));
55 55
         channel.join();
56 56
     }
57
-    
57
+
58 58
     /** {@inheritDoc} */
59 59
     @Override
60 60
     public String getName() {
61 61
         return "cycle";
62 62
     }
63
-    
63
+
64 64
     /** {@inheritDoc} */
65 65
     @Override
66 66
     public boolean showInHelp() {
@@ -72,7 +72,7 @@ public final class Cycle extends Command implements CommandInfo {
72 72
     public CommandType getType() {
73 73
         return CommandType.TYPE_CHANNEL;
74 74
     }
75
-    
75
+
76 76
     /** {@inheritDoc} */
77 77
     @Override
78 78
     public String getHelp() {

+ 5
- 5
src/com/dmdirc/commandparser/commands/channel/Part.java 查看文件

@@ -38,12 +38,12 @@ import com.dmdirc.commandparser.commands.context.CommandContext;
38 38
  */
39 39
 @CommandOptions(allowOffline=false)
40 40
 public final class Part extends Command implements CommandInfo {
41
-    
41
+
42 42
     /** Creates a new instance of Part. */
43 43
     public Part() {
44 44
         super();
45 45
     }
46
-    
46
+
47 47
     /** {@inheritDoc} */
48 48
     @Override
49 49
     public void execute(final FrameContainer origin,
@@ -53,13 +53,13 @@ public final class Part extends Command implements CommandInfo {
53 53
                 : origin.getConfigManager().getOption("general", "partmessage"));
54 54
         channel.close();
55 55
     }
56
-    
56
+
57 57
     /** {@inheritDoc} */
58 58
     @Override
59 59
     public String getName() {
60 60
         return "part";
61 61
     }
62
-    
62
+
63 63
     /** {@inheritDoc} */
64 64
     @Override
65 65
     public boolean showInHelp() {
@@ -71,7 +71,7 @@ public final class Part extends Command implements CommandInfo {
71 71
     public CommandType getType() {
72 72
         return CommandType.TYPE_CHANNEL;
73 73
     }
74
-    
74
+
75 75
     /** {@inheritDoc} */
76 76
     @Override
77 77
     public String getHelp() {

+ 1
- 1
src/com/dmdirc/commandparser/commands/flags/CommandFlag.java 查看文件

@@ -167,5 +167,5 @@ public class CommandFlag {
167 167
     public String getName() {
168 168
         return name;
169 169
     }
170
-    
170
+
171 171
 }

+ 1
- 1
src/com/dmdirc/commandparser/commands/flags/CommandFlagHandler.java 查看文件

@@ -153,7 +153,7 @@ public class CommandFlagHandler {
153 153
         }
154 154
 
155 155
         results.put(null, offset);
156
-        
156
+
157 157
         return results;
158 158
     }
159 159
 

+ 9
- 9
src/com/dmdirc/commandparser/commands/global/Active.java 查看文件

@@ -40,35 +40,35 @@ import com.dmdirc.ui.input.TabCompleter;
40 40
  */
41 41
 public final class Active extends Command implements IntelligentCommand,
42 42
         CommandInfo {
43
-    
43
+
44 44
     /**
45 45
      * Creates a new instance of Active.
46 46
      */
47 47
     public Active() {
48 48
         super();
49 49
     }
50
-    
50
+
51 51
     /** {@inheritDoc} */
52 52
     @Override
53 53
     public void execute(final FrameContainer origin,
54 54
             final CommandArguments args, final CommandContext context) {
55 55
         final String command = args.getArgumentsAsString();
56
-        
56
+
57 57
         final FrameContainer window = WindowManager.getActiveWindow();
58
-        
58
+
59 59
         if (window instanceof WritableFrameContainer) {
60 60
             ((WritableFrameContainer) window).getCommandParser()
61 61
                     .parseCommand(window, context.getSource(), command);
62 62
         }
63 63
     }
64
-    
65
-    
64
+
65
+
66 66
     /** {@inheritDoc} */
67 67
     @Override
68 68
     public String getName() {
69 69
         return "active";
70 70
     }
71
-    
71
+
72 72
     /** {@inheritDoc} */
73 73
     @Override
74 74
     public boolean showInHelp() {
@@ -80,7 +80,7 @@ public final class Active extends Command implements IntelligentCommand,
80 80
     public CommandType getType() {
81 81
         return CommandType.TYPE_GLOBAL;
82 82
     }
83
-    
83
+
84 84
     /** {@inheritDoc} */
85 85
     @Override
86 86
     public String getHelp() {
@@ -94,5 +94,5 @@ public final class Active extends Command implements IntelligentCommand,
94 94
             final IntelligentCommandContext context) {
95 95
         return TabCompleter.getIntelligentResults(arg, context, 0);
96 96
     }
97
-    
97
+
98 98
 }

+ 9
- 9
src/com/dmdirc/commandparser/commands/global/Clear.java 查看文件

@@ -33,33 +33,33 @@ import com.dmdirc.ui.input.AdditionalTabTargets;
33 33
 
34 34
 /**
35 35
  * The clear command clears the main text area of the current window.
36
- * 
36
+ *
37 37
  * @author chris
38 38
  */
39 39
 public final class Clear extends Command implements IntelligentCommand,
40 40
         CommandInfo {
41
-    
41
+
42 42
     /**
43 43
      * Creates a new instance of Clear.
44 44
      */
45 45
     public Clear() {
46 46
         super();
47 47
     }
48
-    
48
+
49 49
     /** {@inheritDoc} */
50 50
     @Override
51 51
     public void execute(final FrameContainer origin,
52 52
             final CommandArguments args, final CommandContext context) {
53 53
         origin.getDocument().clear();
54 54
     }
55
-    
56
-    
55
+
56
+
57 57
     /** {@inheritDoc} */
58 58
     @Override
59 59
     public String getName() {
60 60
         return "clear";
61 61
     }
62
-    
62
+
63 63
     /** {@inheritDoc} */
64 64
     @Override
65 65
     public boolean showInHelp() {
@@ -71,7 +71,7 @@ public final class Clear extends Command implements IntelligentCommand,
71 71
     public CommandType getType() {
72 72
         return CommandType.TYPE_GLOBAL;
73 73
     }
74
-    
74
+
75 75
     /** {@inheritDoc} */
76 76
     @Override
77 77
     public String getHelp() {
@@ -83,6 +83,6 @@ public final class Clear extends Command implements IntelligentCommand,
83 83
     public AdditionalTabTargets getSuggestions(final int arg,
84 84
             final IntelligentCommandContext context) {
85 85
         return new AdditionalTabTargets().excludeAll();
86
-    } 
87
-    
86
+    }
87
+
88 88
 }

+ 2
- 2
src/com/dmdirc/commandparser/commands/global/NewServer.java 查看文件

@@ -44,7 +44,7 @@ import java.util.regex.Pattern;
44 44
 
45 45
 /**
46 46
  * The new server command allows users to open a new server window.
47
- * 
47
+ *
48 48
  * @author chris
49 49
  */
50 50
 public final class NewServer extends Command implements IntelligentCommand,
@@ -127,7 +127,7 @@ public final class NewServer extends Command implements IntelligentCommand,
127 127
         // use the default one we had to start with.
128 128
         return uri;
129 129
     }
130
-    
130
+
131 131
     /**
132 132
      * Parses an input string and attempts to create a URI from it.
133 133
      *

+ 7
- 7
src/com/dmdirc/commandparser/commands/global/ReloadActions.java 查看文件

@@ -39,14 +39,14 @@ import com.dmdirc.ui.input.AdditionalTabTargets;
39 39
  */
40 40
 public final class ReloadActions extends Command implements IntelligentCommand,
41 41
         CommandInfo {
42
-    
42
+
43 43
     /**
44 44
      * Creates a new instance of ReloadActions.
45 45
      */
46 46
     public ReloadActions() {
47 47
         super();
48 48
     }
49
-    
49
+
50 50
     /** {@inheritDoc} */
51 51
     @Override
52 52
     public void execute(final FrameContainer origin,
@@ -54,14 +54,14 @@ public final class ReloadActions extends Command implements IntelligentCommand,
54 54
         ActionManager.getActionManager().loadUserActions();
55 55
         sendLine(origin, args.isSilent(), FORMAT_OUTPUT, "Actions reloaded.");
56 56
     }
57
-    
58
-    
57
+
58
+
59 59
     /** {@inheritDoc}. */
60 60
     @Override
61 61
     public String getName() {
62 62
         return "reloadactions";
63 63
     }
64
-    
64
+
65 65
     /** {@inheritDoc}. */
66 66
     @Override
67 67
     public boolean showInHelp() {
@@ -73,7 +73,7 @@ public final class ReloadActions extends Command implements IntelligentCommand,
73 73
     public CommandType getType() {
74 74
         return CommandType.TYPE_GLOBAL;
75 75
     }
76
-    
76
+
77 77
     /** {@inheritDoc}. */
78 78
     @Override
79 79
     public String getHelp() {
@@ -86,5 +86,5 @@ public final class ReloadActions extends Command implements IntelligentCommand,
86 86
             final IntelligentCommandContext context) {
87 87
         return new AdditionalTabTargets().excludeAll();
88 88
     }
89
-    
89
+
90 90
 }

+ 5
- 5
src/com/dmdirc/commandparser/commands/global/ReloadIdentities.java 查看文件

@@ -34,12 +34,12 @@ import com.dmdirc.ui.input.AdditionalTabTargets;
34 34
 
35 35
 /**
36 36
  * Allows the user to reload identities.
37
- * 
37
+ *
38 38
  * @author chris
39 39
  */
40 40
 public class ReloadIdentities extends Command implements IntelligentCommand,
41 41
         CommandInfo {
42
-    
42
+
43 43
     /**
44 44
      * Creates a new instance of ReloadIdentities.
45 45
      */
@@ -48,11 +48,11 @@ public class ReloadIdentities extends Command implements IntelligentCommand,
48 48
     }
49 49
 
50 50
     /** {@inheritDoc} */
51
-    @Override    
51
+    @Override
52 52
     public void execute(final FrameContainer origin,
53 53
             final CommandArguments args, final CommandContext context) {
54 54
         IdentityManager.loadUser();
55
-        
55
+
56 56
         sendLine(origin, args.isSilent(), FORMAT_OUTPUT, "Identities reloaded.");
57 57
     }
58 58
 
@@ -85,6 +85,6 @@ public class ReloadIdentities extends Command implements IntelligentCommand,
85 85
     public AdditionalTabTargets getSuggestions(final int arg,
86 86
             final IntelligentCommandContext context) {
87 87
         return new AdditionalTabTargets().excludeAll();
88
-    } 
88
+    }
89 89
 
90 90
 }

+ 4
- 4
src/com/dmdirc/commandparser/commands/global/Set.java 查看文件

@@ -65,10 +65,10 @@ public final class Set extends Command implements IntelligentCommand, CommandInf
65 65
      */
66 66
     public Set() {
67 67
         super();
68
-        
68
+
69 69
         unsetFlag.addDisabled(appendFlag);
70 70
         appendFlag.addDisabled(unsetFlag);
71
-        
71
+
72 72
         channelFlag.addDisabled(serverFlag);
73 73
         serverFlag.addDisabled(channelFlag);
74 74
 
@@ -117,14 +117,14 @@ public final class Set extends Command implements IntelligentCommand, CommandInf
117 117
             doUnsetOption(origin, args.isSilent(), identity, arguments[0], arguments[1]);
118 118
             return;
119 119
         }
120
-        
120
+
121 121
         if (res.hasFlag(appendFlag)) {
122 122
             final String[] arguments = res.getArguments(appendFlag);
123 123
             doAppendOption(origin, args.isSilent(), identity, manager,
124 124
                     arguments[0], arguments[1], res.getArgumentsAsString());
125 125
             return;
126 126
         }
127
-        
127
+
128 128
         final String[] arguments = res.getArguments();
129 129
 
130 130
         switch (arguments.length) {

+ 8
- 8
src/com/dmdirc/commandparser/commands/server/AllChannels.java 查看文件

@@ -41,32 +41,32 @@ import com.dmdirc.ui.input.TabCompleter;
41 41
  */
42 42
 public final class AllChannels extends Command implements IntelligentCommand,
43 43
         CommandInfo {
44
-    
44
+
45 45
     /** Creates a new instance of AllChannels. */
46 46
     public AllChannels() {
47 47
         super();
48 48
     }
49
-    
49
+
50 50
     /** {@inheritDoc} */
51 51
     @Override
52 52
     public void execute(final FrameContainer origin,
53 53
             final CommandArguments args, final CommandContext context) {
54 54
         final Server server = ((ServerCommandContext) context).getServer();
55 55
         final String command = args.getArgumentsAsString();
56
-        
56
+
57 57
         for (String channel : server.getChannels()) {
58 58
             server.getChannel(channel).getCommandParser()
59 59
                     .parseCommand(server.getChannel(channel), context.getSource(), command);
60 60
         }
61 61
     }
62
-    
63
-    
62
+
63
+
64 64
     /** {@inheritDoc} */
65 65
     @Override
66 66
     public String getName() {
67 67
         return "allchannels";
68 68
     }
69
-    
69
+
70 70
     /** {@inheritDoc} */
71 71
     @Override
72 72
     public boolean showInHelp() {
@@ -78,7 +78,7 @@ public final class AllChannels extends Command implements IntelligentCommand,
78 78
     public CommandType getType() {
79 79
         return CommandType.TYPE_SERVER;
80 80
     }
81
-    
81
+
82 82
     /** {@inheritDoc} */
83 83
     @Override
84 84
     public String getHelp() {
@@ -92,5 +92,5 @@ public final class AllChannels extends Command implements IntelligentCommand,
92 92
             final IntelligentCommandContext context) {
93 93
         return TabCompleter.getIntelligentResults(arg, context, 0);
94 94
     }
95
-    
95
+
96 96
 }

+ 7
- 7
src/com/dmdirc/commandparser/commands/server/Away.java 查看文件

@@ -38,14 +38,14 @@ import com.dmdirc.commandparser.commands.context.ServerCommandContext;
38 38
  */
39 39
 @CommandOptions(allowOffline=false)
40 40
 public final class Away extends Command implements CommandInfo {
41
-    
41
+
42 42
     /**
43 43
      * Creates a new instance of Away.
44 44
      */
45 45
     public Away() {
46 46
         super();
47 47
     }
48
-    
48
+
49 49
     /** {@inheritDoc} */
50 50
     @Override
51 51
     public void execute(final FrameContainer origin,
@@ -55,14 +55,14 @@ public final class Away extends Command implements CommandInfo {
55 55
 
56 56
         server.getParser().getLocalClient().setAway(line);
57 57
     }
58
-    
59
-    
58
+
59
+
60 60
     /** {@inheritDoc} */
61 61
     @Override
62 62
     public String getName() {
63 63
         return "away";
64 64
     }
65
-    
65
+
66 66
     /** {@inheritDoc} */
67 67
     @Override
68 68
     public boolean showInHelp() {
@@ -74,11 +74,11 @@ public final class Away extends Command implements CommandInfo {
74 74
     public CommandType getType() {
75 75
         return CommandType.TYPE_SERVER;
76 76
     }
77
-    
77
+
78 78
     /** {@inheritDoc} */
79 79
     @Override
80 80
     public String getHelp() {
81 81
         return "away <reason> - marks you as away";
82 82
     }
83
-    
83
+
84 84
 }

+ 10
- 10
src/com/dmdirc/commandparser/commands/server/Ctcp.java 查看文件

@@ -42,14 +42,14 @@ import com.dmdirc.ui.input.TabCompletionType;
42 42
 @CommandOptions(allowOffline=false)
43 43
 public final class Ctcp extends Command implements IntelligentCommand,
44 44
         CommandInfo {
45
-    
45
+
46 46
     /**
47 47
      * Creates a new instance of Ctcp.
48 48
      */
49 49
     public Ctcp() {
50 50
         super();
51 51
     }
52
-    
52
+
53 53
     /** {@inheritDoc} */
54 54
     @Override
55 55
     public void execute(final FrameContainer origin,
@@ -64,14 +64,14 @@ public final class Ctcp extends Command implements IntelligentCommand,
64 64
                     args.getArgumentsAsString(1));
65 65
         }
66 66
     }
67
-    
68
-    
67
+
68
+
69 69
     /** {@inheritDoc}. */
70 70
     @Override
71 71
     public String getName() {
72 72
         return "ctcp";
73 73
     }
74
-    
74
+
75 75
     /** {@inheritDoc}. */
76 76
     @Override
77 77
     public boolean showInHelp() {
@@ -83,19 +83,19 @@ public final class Ctcp extends Command implements IntelligentCommand,
83 83
     public CommandType getType() {
84 84
         return CommandType.TYPE_SERVER;
85 85
     }
86
-    
86
+
87 87
     /** {@inheritDoc}. */
88 88
     @Override
89 89
     public String getHelp() {
90 90
         return "ctcp <target> <type> [arguments] - sends a CTCP message";
91 91
     }
92
-    
92
+
93 93
     /** {@inheritDoc} */
94 94
     @Override
95 95
     public AdditionalTabTargets getSuggestions(final int arg,
96 96
             final IntelligentCommandContext context) {
97 97
         final AdditionalTabTargets res = new AdditionalTabTargets();
98
-        
98
+
99 99
         if (arg == 0) {
100 100
             res.exclude(TabCompletionType.COMMAND);
101 101
         } else if (arg == 1) {
@@ -109,8 +109,8 @@ public final class Ctcp extends Command implements IntelligentCommand,
109 109
             res.add("TIME");
110 110
             res.excludeAll();
111 111
         }
112
-        
112
+
113 113
         return res;
114 114
     }
115
-    
115
+
116 116
 }

+ 8
- 8
src/com/dmdirc/commandparser/commands/server/Ignore.java 查看文件

@@ -45,14 +45,14 @@ import java.util.regex.PatternSyntaxException;
45 45
  */
46 46
 public final class Ignore extends Command implements IntelligentCommand,
47 47
         CommandInfo {
48
-    
48
+
49 49
     /**
50 50
      * Creates a new instance of Ignore.
51 51
      */
52 52
     public Ignore() {
53 53
         super();
54 54
     }
55
-    
55
+
56 56
     /** {@inheritDoc} */
57 57
     @Override
58 58
     public void execute(final FrameContainer origin,
@@ -156,13 +156,13 @@ public final class Ignore extends Command implements IntelligentCommand,
156 156
 
157 157
         sendLine(origin, args.isSilent(), FORMAT_ERROR, "Ignore list doesn't contain '" + host + "'.");
158 158
     }
159
-    
159
+
160 160
     /** {@inheritDoc} */
161 161
     @Override
162 162
     public String getName() {
163 163
         return "ignore";
164 164
     }
165
-    
165
+
166 166
     /** {@inheritDoc} */
167 167
     @Override
168 168
     public boolean showInHelp() {
@@ -174,7 +174,7 @@ public final class Ignore extends Command implements IntelligentCommand,
174 174
     public CommandType getType() {
175 175
         return CommandType.TYPE_SERVER;
176 176
     }
177
-    
177
+
178 178
     /** {@inheritDoc} */
179 179
     @Override
180 180
     public String getHelp() {
@@ -187,7 +187,7 @@ public final class Ignore extends Command implements IntelligentCommand,
187 187
             final IntelligentCommandContext context) {
188 188
         final AdditionalTabTargets targets = new AdditionalTabTargets();
189 189
         targets.excludeAll();
190
-        
190
+
191 191
         if (arg == 0) {
192 192
             targets.add("--regex");
193 193
             targets.add("--remove");
@@ -197,8 +197,8 @@ public final class Ignore extends Command implements IntelligentCommand,
197 197
             targets.include(TabCompletionType.CHANNEL_NICK);
198 198
             targets.include(TabCompletionType.QUERY_NICK);
199 199
         }
200
-        
200
+
201 201
         return targets;
202 202
     }
203
-    
203
+
204 204
 }

+ 9
- 9
src/com/dmdirc/commandparser/commands/server/Message.java 查看文件

@@ -45,14 +45,14 @@ import com.dmdirc.ui.interfaces.InputWindow;
45 45
 @CommandOptions(allowOffline=false)
46 46
 public final class Message extends Command implements IntelligentCommand,
47 47
         WrappableCommand, CommandInfo {
48
-    
48
+
49 49
     /**
50 50
      * Creates a new instance of Message.
51 51
      */
52 52
     public Message() {
53 53
         super();
54 54
     }
55
-    
55
+
56 56
     /** {@inheritDoc} */
57 57
     @Override
58 58
     public void execute(final FrameContainer origin,
@@ -86,14 +86,14 @@ public final class Message extends Command implements IntelligentCommand,
86 86
             }
87 87
         }
88 88
     }
89
-    
90
-    
89
+
90
+
91 91
     /** {@inheritDoc} */
92 92
     @Override
93 93
     public String getName() {
94 94
         return "msg";
95 95
     }
96
-    
96
+
97 97
     /** {@inheritDoc} */
98 98
     @Override
99 99
     public boolean showInHelp() {
@@ -105,7 +105,7 @@ public final class Message extends Command implements IntelligentCommand,
105 105
     public CommandType getType() {
106 106
         return CommandType.TYPE_SERVER;
107 107
     }
108
-    
108
+
109 109
     /** {@inheritDoc} */
110 110
     @Override
111 111
     public String getHelp() {
@@ -117,14 +117,14 @@ public final class Message extends Command implements IntelligentCommand,
117 117
     public AdditionalTabTargets getSuggestions(final int arg,
118 118
             final IntelligentCommandContext context) {
119 119
         final AdditionalTabTargets res = new AdditionalTabTargets();
120
-        
120
+
121 121
         if (arg == 0) {
122 122
             res.excludeAll();
123 123
             res.include(TabCompletionType.CHANNEL_NICK);
124 124
             res.include(TabCompletionType.CHANNEL);
125 125
             res.include(TabCompletionType.QUERY_NICK);
126 126
         }
127
-        
127
+
128 128
         return res;
129 129
     }
130 130
 
@@ -139,5 +139,5 @@ public final class Message extends Command implements IntelligentCommand,
139 139
             return 1;
140 140
         }
141 141
     }
142
-    
142
+
143 143
 }

+ 4
- 4
src/com/dmdirc/commandparser/commands/server/Umode.java 查看文件

@@ -35,18 +35,18 @@ import com.dmdirc.commandparser.commands.context.ServerCommandContext;
35 35
 
36 36
 /**
37 37
  * Allows the user to change user modes.
38
- * 
38
+ *
39 39
  * @author chris
40 40
  */
41 41
 @CommandOptions(allowOffline=false)
42 42
 public class Umode extends Command implements CommandInfo {
43
-    
43
+
44 44
     /**
45 45
      * Creates a new instance of Umode.
46 46
      */
47 47
     public Umode() {
48 48
         super();
49
-    }    
49
+    }
50 50
 
51 51
     /** {@inheritDoc} */
52 52
     @Override
@@ -68,7 +68,7 @@ public class Umode extends Command implements CommandInfo {
68 68
     public String getName() {
69 69
         return "umode";
70 70
     }
71
-    
71
+
72 72
     /** {@inheritDoc} */
73 73
     @Override
74 74
     public boolean showInHelp() {

+ 1
- 1
src/com/dmdirc/commandparser/parsers/ChatCommandParser.java 查看文件

@@ -35,7 +35,7 @@ import com.dmdirc.ui.interfaces.Window;
35 35
 /**
36 36
  * A command parser which implements common functionality for chat windows
37 37
  * (queries and channels).
38
- * 
38
+ *
39 39
  * @since 0.6.4
40 40
  * @author chris
41 41
  */

+ 3
- 3
src/com/dmdirc/commandparser/validators/CommandNameValidator.java 查看文件

@@ -1,16 +1,16 @@
1 1
 /*
2 2
  * Copyright (c) 2006-2011 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
- * 
3
+ *
4 4
  * Permission is hereby granted, free of charge, to any person obtaining a copy
5 5
  * of this software and associated documentation files (the "Software"), to deal
6 6
  * in the Software without restriction, including without limitation the rights
7 7
  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 8
  * copies of the Software, and to permit persons to whom the Software is
9 9
  * furnished to do so, subject to the following conditions:
10
- * 
10
+ *
11 11
  * The above copyright notice and this permission notice shall be included in
12 12
  * all copies or substantial portions of the Software.
13
- * 
13
+ *
14 14
  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 15
  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 16
  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE

+ 10
- 10
src/com/dmdirc/config/ConfigSource.java 查看文件

@@ -55,15 +55,15 @@ import java.util.List;
55 55
  * @author chris
56 56
  */
57 57
 public abstract class ConfigSource {
58
-    
58
+
59 59
     /** A permissive validator to use when callers don't specify one. */
60 60
     private static final Validator<String> PERMISSIVE_VALIDATOR
61 61
             = new PermissiveValidator<String>();
62
-    
62
+
63 63
     /** A validator for integer settings. */
64 64
     private static final Validator<String> INT_VALIDATOR
65 65
             = new OptionalValidator(new NumericalValidator(-1, -1));
66
-    
66
+
67 67
     /** A validator for colour settings. */
68 68
     private static final Validator<String> COLOUR_VALIDATOR
69 69
             = new OptionalValidator(new ColourValidator());
@@ -78,7 +78,7 @@ public abstract class ConfigSource {
78 78
     public String getOption(final String domain, final String option) {
79 79
         return getOption(domain, option, PERMISSIVE_VALIDATOR);
80 80
     }
81
-    
81
+
82 82
     /**
83 83
      * Retrieves the first value for the specified option that matches the
84 84
      * specified validator.
@@ -123,7 +123,7 @@ public abstract class ConfigSource {
123 123
     public boolean hasOptionString(final String domain, final String option) {
124 124
         return hasOptionString(domain, option, PERMISSIVE_VALIDATOR);
125 125
     }
126
-    
126
+
127 127
     /**
128 128
      * Determines if this source has the specified String option.
129 129
      * <p>
@@ -199,7 +199,7 @@ public abstract class ConfigSource {
199 199
     public boolean hasOptionBool(final String domain, final String option) {
200 200
         return hasOption(domain, option, PERMISSIVE_VALIDATOR);
201 201
     }
202
-    
202
+
203 203
     /**
204 204
      * Retrieves the specified option as a String, if it exists and satisfies
205 205
      * the specified validator.
@@ -225,14 +225,14 @@ public abstract class ConfigSource {
225 225
             final boolean required, final Validator<String> validator,
226 226
             final String ... fallbacks) {
227 227
         String value;
228
-        
228
+
229 229
         @SuppressWarnings("unchecked")
230 230
         final Validator<String> newValidator = required && fallbacks.length == 0
231 231
                 ? new ValidatorChain<String>(new DisabledOptionValidator(), validator)
232 232
                 : validator;
233 233
 
234 234
         if (!hasOption(domain, option, newValidator)
235
-                || (value = getOption(domain, option, newValidator)).startsWith("false:")) {            
235
+                || (value = getOption(domain, option, newValidator)).startsWith("false:")) {
236 236
             return fallbacks.length >= 2 ? getOptionString(fallbacks[0],
237 237
                     fallbacks[1], required, validator,
238 238
                     Arrays.copyOfRange(fallbacks, 2, fallbacks.length)) : null;
@@ -269,7 +269,7 @@ public abstract class ConfigSource {
269 269
     public char getOptionChar(final String domain, final String option) {
270 270
         return getOption(domain, option).charAt(0);
271 271
     }
272
-    
272
+
273 273
     /**
274 274
      * Retrieves a colour representation of the specified option.
275 275
      *
@@ -332,7 +332,7 @@ public abstract class ConfigSource {
332 332
     public List<String> getOptionList(final String domain, final String option) {
333 333
         return getOptionList(domain, option, true);
334 334
     }
335
-    
335
+
336 336
     /**
337 337
      * Retrieves an integral representation of the specified option.
338 338
      *

+ 1
- 1
src/com/dmdirc/config/ConfigTarget.java 查看文件

@@ -114,7 +114,7 @@ public class ConfigTarget implements Comparable<ConfigTarget>, Serializable {
114 114
 
115 115
     /**
116 116
      * Sets this target to be a custom identity.
117
-     * 
117
+     *
118 118
      * @param customType The type of custom identity
119 119
      * @since 0.6.4
120 120
      */

+ 2
- 2
src/com/dmdirc/config/Identity.java 查看文件

@@ -333,11 +333,11 @@ public class Identity extends ConfigSource implements Comparable<Identity> {
333 333
     public synchronized String getOption(final String domain,
334 334
             final String option, final Validator<String> validator) {
335 335
         final String value = file.getKeyDomain(domain).get(option);
336
-        
336
+
337 337
         if (validator.validate(value).isFailure()) {
338 338
             return null;
339 339
         }
340
-        
340
+
341 341
         return value;
342 342
     }
343 343
 

+ 6
- 6
src/com/dmdirc/config/InvalidIdentityFileException.java 查看文件

@@ -25,18 +25,18 @@ package com.dmdirc.config;
25 25
 /**
26 26
  * Thrown when an identity file is read that does not contain the required
27 27
  * fields.
28
- * 
28
+ *
29 29
  * @author chris
30 30
  */
31 31
 public class InvalidIdentityFileException extends Exception {
32
-    
32
+
33 33
     /**
34 34
      * A version number for this class. It should be changed whenever the class
35 35
      * structure is changed (or anything else that would prevent serialized
36 36
      * objects being unserialized with the new class).
37 37
      */
38
-    private static final long serialVersionUID = 1;    
39
-    
38
+    private static final long serialVersionUID = 1;
39
+
40 40
     /** Creates a new instance of InvalidIdentityFileException. */
41 41
     public InvalidIdentityFileException() {
42 42
         super();
@@ -51,7 +51,7 @@ public class InvalidIdentityFileException extends Exception {
51 51
     public InvalidIdentityFileException(final Throwable cause) {
52 52
         super(cause);
53 53
     }
54
-    
54
+
55 55
     /**
56 56
      * Creates a new instance of InvalidIdentityFileException.
57 57
      * @param s Detail message
@@ -59,5 +59,5 @@ public class InvalidIdentityFileException extends Exception {
59 59
     public InvalidIdentityFileException(final String s) {
60 60
         super(s);
61 61
     }
62
-    
62
+
63 63
 }

+ 4
- 4
src/com/dmdirc/config/prefs/CategoryChangeListener.java 查看文件

@@ -24,21 +24,21 @@ package com.dmdirc.config.prefs;
24 24
 /**
25 25
  * Defines methods that should be implemented by objects who wish to be
26 26
  * notified about category changes.
27
- * 
27
+ *
28 28
  * @author chris
29 29
  */
30 30
 public interface CategoryChangeListener {
31 31
 
32 32
     /**
33 33
      * Called when a category has been selected.
34
-     * 
34
+     *
35 35
      * @param category The category that was selected
36 36
      */
37 37
     void categorySelected(final PreferencesCategory category);
38
-    
38
+
39 39
     /**
40 40
      * Called when a category has been deselected.
41
-     * 
41
+     *
42 42
      * @param category The category that was deselected
43 43
      */
44 44
     void categoryDeselected(final PreferencesCategory category);

+ 3
- 3
src/com/dmdirc/config/prefs/PreferencesInterface.java 查看文件

@@ -26,10 +26,10 @@ package com.dmdirc.config.prefs;
26 26
  * Interface for objects that are added to the preferences dialog.
27 27
  */
28 28
 public interface PreferencesInterface {
29
-    
30
-    /** 
29
+
30
+    /**
31 31
      * Called when the preferences dialog is being saved.
32 32
      */
33 33
     void save();
34
-    
34
+
35 35
 }

+ 1
- 1
src/com/dmdirc/config/prefs/PreferencesSetting.java 查看文件

@@ -59,7 +59,7 @@ public class PreferencesSetting {
59 59
     /** Whether or not we need a restart. */
60 60
     protected boolean restartNeeded;
61 61
     /** A list of change listeners. */
62
-    private final List<SettingChangeListener> listeners 
62
+    private final List<SettingChangeListener> listeners
63 63
             = new ArrayList<SettingChangeListener>();
64 64
     /** Identity to save settings to. */
65 65
     private final Identity identity;

+ 2
- 2
src/com/dmdirc/interfaces/ActionListener.java 查看文件

@@ -27,11 +27,11 @@ import com.dmdirc.actions.interfaces.ActionType;
27 27
 /**
28 28
  * Defines the method that has to be implemented by classes wanting to receive
29 29
  * action events.
30
- * 
30
+ *
31 31
  * @author chris
32 32
  */
33 33
 public interface ActionListener {
34
-    
34
+
35 35
     /**
36 36
      * Processes an action of the specified type.
37 37
      *

+ 4
- 4
src/com/dmdirc/interfaces/AwayStateListener.java 查看文件

@@ -24,18 +24,18 @@ package com.dmdirc.interfaces;
24 24
 
25 25
 /**
26 26
  * AwayStateListeners are informed of changes to our away state.
27
- * 
27
+ *
28 28
  * @author chris
29 29
  */
30 30
 public interface AwayStateListener {
31
-    
31
+
32 32
     /**
33 33
      * Called when we're marked as away.
34
-     * 
34
+     *
35 35
      * @param reason The reason that we're away
36 36
      */
37 37
     void onAway(String reason);
38
-    
38
+
39 39
     /**
40 40
      * Called when we're marked as back.
41 41
      */

+ 5
- 5
src/com/dmdirc/interfaces/InviteListener.java 查看文件

@@ -30,22 +30,22 @@ import java.util.EventListener;
30 30
 /**
31 31
  * Defines the methods that should be implemented by classes which wish to
32 32
  * receive information about invites.
33
- * 
33
+ *
34 34
  * @author Chris
35 35
  */
36 36
 public interface InviteListener extends EventListener {
37
-    
37
+
38 38
     /**
39 39
      * Called when a new invite has been received.
40
-     * 
40
+     *
41 41
      * @param server The server the invite was received by
42 42
      * @param invite The invite that was received
43 43
      */
44 44
     void inviteReceived(final Server server, final Invite invite);
45
-    
45
+
46 46
     /**
47 47
      * Called when an invite has expired or has been used.
48
-     * 
48
+     *
49 49
      * @param server The server the invite was initially received by
50 50
      * @param invite The invite that has expired
51 51
      */

+ 6
- 6
src/com/dmdirc/interfaces/NicklistListener.java 查看文件

@@ -38,28 +38,28 @@ public interface NicklistListener {
38 38
      * Called to indicate the client list has been extensively updated,
39 39
      * and any cached data should be discarded and replaced with the specified
40 40
      * set of clients.
41
-     * 
41
+     *
42 42
      * @param clients The new set of clients for the channel
43 43
      */
44 44
     void clientListUpdated(Collection<ChannelClientInfo> clients);
45
-    
45
+
46 46
     /**
47 47
      * Called to indicate a member of the channel has had their nicklist entry
48 48
      * changed in some manner, and their display text, colours, etc, should be
49 49
      * re-read from the object.
50 50
      */
51 51
     void clientListUpdated();
52
-    
52
+
53 53
     /**
54 54
      * Called to indicate a new client has been added to the nicklist
55
-     * 
55
+     *
56 56
      * @param client The new client that has been added
57 57
      */
58 58
     void clientAdded(ChannelClientInfo client);
59
-    
59
+
60 60
     /**
61 61
      * Called to indicate a client has been removed from the nicklist
62
-     * 
62
+     *
63 63
      * @param client The client that has been removed
64 64
      */
65 65
     void clientRemoved(ChannelClientInfo client);

+ 6
- 6
src/com/dmdirc/logger/ErrorFixedStatus.java 查看文件

@@ -31,7 +31,7 @@ public enum ErrorFixedStatus {
31 31
     /** Finished state. */
32 32
     KNOWN("Known bug"),
33 33
     /** Sending state. */
34
-    FIXED("Fixed"), 
34
+    FIXED("Fixed"),
35 35
     /** Waiting state. */
36 36
     INVALID("Invalid bug"),
37 37
     /** Unreported. */
@@ -42,19 +42,19 @@ public enum ErrorFixedStatus {
42 42
     DUPLICATE("Duplicate bug exists in list"),
43 43
     /** Unknown state. */
44 44
     UNKNOWN("Unknown status");
45
-    
45
+
46 46
     /** toString value of the item. */
47 47
     private String value;
48
-    
49
-    /** 
50
-     * Instantiates the enum. 
48
+
49
+    /**
50
+     * Instantiates the enum.
51 51
      *
52 52
      * @param value toString value
53 53
      */
54 54
     ErrorFixedStatus(final String value) {
55 55
         this.value = value;
56 56
     }
57
-    
57
+
58 58
     /** {@inheritDoc} */
59 59
     @Override
60 60
     public String toString() {

+ 9
- 9
src/com/dmdirc/logger/ErrorLevel.java 查看文件

@@ -34,14 +34,14 @@ public enum ErrorLevel {
34 34
     LOW("Low", "info"),
35 35
     /** Unknown priority error. */
36 36
     UNKNOWN("Unknown", "info");
37
-    
37
+
38 38
     /** Error level string. */
39 39
     private String value;
40 40
     /** Error level icon. */
41 41
     private String icon;
42
-    
43
-    /** 
44
-     * Instantiates the enum. 
42
+
43
+    /**
44
+     * Instantiates the enum.
45 45
      *
46 46
      * @param value toString value
47 47
      * @param icon Error level icon
@@ -50,22 +50,22 @@ public enum ErrorLevel {
50 50
         this.value = value;
51 51
         this.icon = icon;
52 52
     }
53
-    
53
+
54 54
     /** {@inheritDoc} */
55 55
     @Override
56 56
     public String toString() {
57 57
         return value;
58 58
     }
59
-    
59
+
60 60
     /**
61 61
      * Error levels icon.
62
-     * 
62
+     *
63 63
      * @return Error levels icon
64 64
      */
65 65
     public String getIcon() {
66 66
         return icon;
67 67
     }
68
-    
68
+
69 69
     /**
70 70
      * Returns if the specified error is more important than this one
71 71
      *
@@ -77,7 +77,7 @@ public enum ErrorLevel {
77 77
         if (level == null) {
78 78
             return false;
79 79
         }
80
-        
80
+
81 81
         return ordinal() > level.ordinal();
82 82
     }
83 83
 }

+ 6
- 6
src/com/dmdirc/logger/ErrorReportStatus.java 查看文件

@@ -38,15 +38,15 @@ public enum ErrorReportStatus {
38 38
     QUEUED("Queued", false),
39 39
     /** Waiting state. */
40 40
     WAITING("Waiting", true);
41
-    
41
+
42 42
     /** toString value of the item. */
43 43
     private final String value;
44 44
 
45 45
     /** Whether this state is terminal. */
46 46
     private final boolean terminal;
47
-    
48
-    /** 
49
-     * Instantiates the enum. 
47
+
48
+    /**
49
+     * Instantiates the enum.
50 50
      *
51 51
      * @param value toString value
52 52
      * @param terminal Whether or not the state is terminal (i.e., whether there
@@ -62,13 +62,13 @@ public enum ErrorReportStatus {
62 62
      * defined as those on which no further actions will be performed without
63 63
      * user interaction. Non-terminal states may start or finish sending in
64 64
      * the future.
65
-     * 
65
+     *
66 66
      * @return True if the state is terminal, false otherwise
67 67
      */
68 68
     public boolean isTerminal() {
69 69
         return terminal;
70 70
     }
71
-    
71
+
72 72
     /** {@inheritDoc} */
73 73
     @Override
74 74
     public String toString() {

+ 8
- 8
src/com/dmdirc/logger/Logger.java 查看文件

@@ -29,12 +29,12 @@ public final class Logger {
29 29
 
30 30
     /** The MANAGER to use to report errors. */
31 31
     protected static final ErrorManager MANAGER = ErrorManager.getErrorManager();
32
-       
32
+
33 33
     /** Prevent instantiation of a new instance of Logger. */
34 34
     private Logger() {
35 35
         //Ignore
36 36
     }
37
-    
37
+
38 38
     /**
39 39
      * Called when a user correctable error occurs.
40 40
      *
@@ -44,7 +44,7 @@ public final class Logger {
44 44
     public static void userError(final ErrorLevel level, final String message) {
45 45
         MANAGER.addError(level, message);
46 46
     }
47
-    
47
+
48 48
     /**
49 49
      * Called when a user correctable error occurs.
50 50
      *
@@ -56,7 +56,7 @@ public final class Logger {
56 56
             final String details) {
57 57
         MANAGER.addError(level, message, new String[]{details}, false);
58 58
     }
59
-    
59
+
60 60
     /**
61 61
      * Called when a user correctable error occurs.
62 62
      *
@@ -68,7 +68,7 @@ public final class Logger {
68 68
             final String message, final Throwable exception) {
69 69
         MANAGER.addError(level, message, exception, false);
70 70
     }
71
-    
71
+
72 72
     /**
73 73
      * Called when a non user correctable error occurs, the error will be
74 74
      * logged and optionally sent to the developers.
@@ -81,11 +81,11 @@ public final class Logger {
81 81
             final String message, final Throwable exception) {
82 82
         MANAGER.addError(level, message, exception, true);
83 83
     }
84
-    
84
+
85 85
     /**
86 86
      * Asserts that the specified value is true. If not, an AssertionError
87 87
      * exception is thrown.
88
-     * 
88
+     *
89 89
      * @param value The value to be tested
90 90
      */
91 91
     public static void assertTrue(final boolean value) {
@@ -93,5 +93,5 @@ public final class Logger {
93 93
             throw new AssertionError();
94 94
         }
95 95
     }
96
-    
96
+
97 97
 }

+ 3
- 3
src/com/dmdirc/logger/NullOutputStream.java 查看文件

@@ -29,15 +29,15 @@ import java.io.OutputStream;
29 29
  * Fake buffered output stream, writes files to /dev/null.
30 30
  */
31 31
 public class NullOutputStream extends OutputStream {
32
-    
32
+
33 33
     /** Instantiates a new null output stream. */
34 34
     public NullOutputStream() {
35 35
         super();
36 36
     }
37
-    
37
+
38 38
     /** {@inheritDoc} */
39 39
     public void write(final int b) throws IOException {
40 40
         //Ignore data.
41 41
     }
42
-    
42
+
43 43
 }

+ 1
- 1
src/com/dmdirc/plugins/PluginClassLoader.java 查看文件

@@ -178,7 +178,7 @@ public class PluginClassLoader extends ClassLoader {
178 178
 
179 179
     /**
180 180
      * {@inheritDoc}
181
-     * 
181
+     *
182 182
      * @since 0.6.3
183 183
      */
184 184
     @Override

+ 9
- 9
src/com/dmdirc/tls/CertificateManager.java 查看文件

@@ -69,7 +69,7 @@ import net.miginfocom.Base64;
69 69
  * @since 0.6.3m1
70 70
  */
71 71
 public class CertificateManager implements X509TrustManager {
72
-    
72
+
73 73
     /** List of listeners. */
74 74
     private final ListenerList listeners = new ListenerList();
75 75
 
@@ -90,10 +90,10 @@ public class CertificateManager implements X509TrustManager {
90 90
 
91 91
     /** The action to perform. */
92 92
     private CertificateAction action;
93
-    
93
+
94 94
     /** A list of problems encountered most recently. */
95 95
     private final List<CertificateException> problems = new ArrayList<CertificateException>();
96
-    
96
+
97 97
     /** The chain of certificates currently being validated. */
98 98
     private X509Certificate[] chain;
99 99
 
@@ -298,7 +298,7 @@ public class CertificateManager implements X509TrustManager {
298 298
             throws CertificateException {
299 299
         this.chain = chain;
300 300
         problems.clear();
301
-        
301
+
302 302
         boolean verified = false;
303 303
         boolean manual = false;
304 304
 
@@ -352,7 +352,7 @@ public class CertificateManager implements X509TrustManager {
352 352
                 throw new CertificateException("Thread aborted", ie);
353 353
             } finally {
354 354
                 problems.clear();
355
-                
355
+
356 356
                 for (CertificateProblemListener listener : listeners.get(CertificateProblemListener.class)) {
357 357
                     listener.certificateProblemResolved(this);
358 358
                 }
@@ -374,7 +374,7 @@ public class CertificateManager implements X509TrustManager {
374 374
             }
375 375
         }
376 376
     }
377
-    
377
+
378 378
     /**
379 379
      * Gets the chain of certificates currently being validated, if any.
380 380
      *
@@ -383,7 +383,7 @@ public class CertificateManager implements X509TrustManager {
383 383
     public X509Certificate[] getChain() {
384 384
         return chain;
385 385
     }
386
-    
386
+
387 387
     /**
388 388
      * Gets the set of problems that were encountered with the last certificate.
389 389
      *
@@ -442,7 +442,7 @@ public class CertificateManager implements X509TrustManager {
442 442
     public X509Certificate[] getAcceptedIssuers() {
443 443
         return globalTrustedCAs.toArray(new X509Certificate[globalTrustedCAs.size()]);
444 444
     }
445
-    
445
+
446 446
    /**
447 447
      * Adds a new certificate problem listener to this manager.
448 448
      *
@@ -451,7 +451,7 @@ public class CertificateManager implements X509TrustManager {
451 451
     public void addCertificateProblemListener(final CertificateProblemListener listener) {
452 452
         listeners.add(CertificateProblemListener.class, listener);
453 453
     }
454
-    
454
+
455 455
     /**
456 456
      * Removes the specified listener from this manager.
457 457
      *

+ 2
- 2
src/com/dmdirc/ui/core/components/WindowComponent.java 查看文件

@@ -26,7 +26,7 @@ package com.dmdirc.ui.core.components;
26 26
  * An enumeration of common window components.
27 27
  */
28 28
 public enum WindowComponent {
29
-    
29
+
30 30
     /** A small bar to show the current topic/subject and allow editing. */
31 31
     TOPICBAR("com.dmdirc.ui.components.topicbar"),
32 32
     /** A panel to show a list of users or contacts. */
@@ -37,7 +37,7 @@ public enum WindowComponent {
37 37
     INPUTFIELD("com.dmdirc.ui.components.inputfield"),
38 38
     /** A component to show details of or problems with a certificate. */
39 39
     CERTIFICATE_VIEWER("com.dmdirc.ui.components.certificateviewer"),;
40
-    
40
+
41 41
     /** The identifier for this window component. */
42 42
     private final String identifier;
43 43
 

+ 1
- 1
src/com/dmdirc/ui/core/dialogs/sslcertificate/CertificateInformationEntry.java 查看文件

@@ -61,7 +61,7 @@ public class CertificateInformationEntry {
61 61
 
62 62
     /**
63 63
      * Checks whether the value is considered invalid.
64
-     * 
64
+     *
65 65
      * @return True if the value is invalid, false otherwise
66 66
      */
67 67
     public boolean isInvalid() {

+ 4
- 4
src/com/dmdirc/ui/core/dialogs/sslcertificate/SSLCertificateDialogModel.java 查看文件

@@ -137,7 +137,7 @@ public class SSLCertificateDialogModel {
137 137
         group = new ArrayList<CertificateInformationEntry>();
138 138
         addCertField(fields, group, "Common name", "CN", wrongName);
139 139
 
140
-        group.add(new CertificateInformationEntry("Alternate names", 
140
+        group.add(new CertificateInformationEntry("Alternate names",
141 141
                 names == null ? NOTPRESENT : names, wrongName, names == null));
142 142
 
143 143
         addCertField(fields, group, "Organisation", "O", false);
@@ -258,7 +258,7 @@ public class SSLCertificateDialogModel {
258 258
 
259 259
         return res;
260 260
     }
261
-    
261
+
262 262
     /**
263 263
      * Determines whether or not a response is required from the user about
264 264
      * this certificate chain.
@@ -282,7 +282,7 @@ public class SSLCertificateDialogModel {
282 282
      * Performs the specified action on the certificate chain/connection.
283 283
      * Should only be called once per instance, and only if
284 284
      * {@link #needsResponse()} returns true.
285
-     * 
285
+     *
286 286
      * @param action The action to be performed
287 287
      */
288 288
     public void performAction(final CertificateAction action) {
@@ -290,7 +290,7 @@ public class SSLCertificateDialogModel {
290 290
             throw new IllegalStateException("Can't perform action when "
291 291
                     + "no action is needed");
292 292
         }
293
-        
293
+
294 294
         manager.setAction(action);
295 295
     }
296 296
 

+ 4
- 4
src/com/dmdirc/ui/core/util/ExtendedAttributedString.java 查看文件

@@ -1,17 +1,17 @@
1 1
 /*
2
- * 
2
+ *
3 3
  * Copyright (c) 2006-2011 Chris Smith, Shane Mc Cormack, Gregory Holmes
4
- * 
4
+ *
5 5
  * Permission is hereby granted, free of charge, to any person obtaining a copy
6 6
  * of this software and associated documentation files (the "Software"), to deal
7 7
  * in the Software without restriction, including without limitation the rights
8 8
  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 9
  * copies of the Software, and to permit persons to whom the Software is
10 10
  * furnished to do so, subject to the following conditions:
11
- * 
11
+ *
12 12
  * The above copyright notice and this permission notice shall be included in
13 13
  * all copies or substantial portions of the Software.
14
- * 
14
+ *
15 15
  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 16
  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 17
  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE

+ 2
- 2
src/com/dmdirc/ui/input/TabCompletionType.java 查看文件

@@ -23,11 +23,11 @@ package com.dmdirc.ui.input;
23 23
 
24 24
 /**
25 25
  * The possible types of tab-completion entries.
26
- * 
26
+ *
27 27
  * @author chris
28 28
  */
29 29
 public enum TabCompletionType {
30
-    
30
+
31 31
     /** A command name. */
32 32
     COMMAND,
33 33
     /** A channel name. */

+ 6
- 6
src/com/dmdirc/ui/input/tabstyles/TabCompletionResult.java 查看文件

@@ -27,13 +27,13 @@ package com.dmdirc.ui.input.tabstyles;
27 27
  * new string (to replace the current one), and a new caret position.
28 28
  */
29 29
 public class TabCompletionResult {
30
-    
30
+
31 31
     /** The new string to use in the result. */
32 32
     private final String text;
33
-    
33
+
34 34
     /** The new caret position to be used. */
35 35
     private final int position;
36
-    
36
+
37 37
     /**
38 38
      * Creates a new instance of TabCompletionResult.
39 39
      *
@@ -44,7 +44,7 @@ public class TabCompletionResult {
44 44
         this.text = text;
45 45
         this.position = position;
46 46
     }
47
-    
47
+
48 48
     /**
49 49
      * Retrieves the replacement string for this result.
50 50
      *
@@ -53,7 +53,7 @@ public class TabCompletionResult {
53 53
     public String getText() {
54 54
         return text;
55 55
     }
56
-    
56
+
57 57
     /**
58 58
      * Retrieves the new caret position for this result.
59 59
      *
@@ -62,5 +62,5 @@ public class TabCompletionResult {
62 62
     public int getPosition() {
63 63
         return position;
64 64
     }
65
-    
65
+
66 66
 }

+ 6
- 6
src/com/dmdirc/ui/interfaces/InputValidationListener.java 查看文件

@@ -26,25 +26,25 @@ package com.dmdirc.ui.interfaces;
26 26
  * Defines methods that need to be implemented by validation listeners.
27 27
  */
28 28
 public interface InputValidationListener {
29
-    
29
+
30 30
     /**
31 31
      * Called when the command that has been entered is illegal.
32
-     * 
32
+     *
33 33
      * @param reason The reason that the command is illegal
34 34
      */
35 35
     void illegalCommand(final String reason);
36
-    
36
+
37 37
     /**
38 38
      * Called when the command that has been entered is legal.
39
-     * 
39
+     *
40 40
      * @since 0.6
41 41
      */
42 42
     void legalCommand();
43
-    
43
+
44 44
     /**
45 45
      * Called when the text or command that has been entered will be wrapped
46 46
      * onto multiple lines.
47
-     * 
47
+     *
48 48
      * @param count The number of lines that the text will be sent as
49 49
      */
50 50
     void wrappedText(final int count);

+ 6
- 6
src/com/dmdirc/ui/interfaces/SearchBar.java 查看文件

@@ -1,16 +1,16 @@
1 1
 /*
2 2
  * Copyright (c) 2006-2011 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
- * 
3
+ *
4 4
  * Permission is hereby granted, free of charge, to any person obtaining a copy
5 5
  * of this software and associated documentation files (the "Software"), to deal
6 6
  * in the Software without restriction, including without limitation the rights
7 7
  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 8
  * copies of the Software, and to permit persons to whom the Software is
9 9
  * furnished to do so, subject to the following conditions:
10
- * 
10
+ *
11 11
  * The above copyright notice and this permission notice shall be included in
12 12
  * all copies or substantial portions of the Software.
13
- * 
13
+ *
14 14
  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 15
  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 16
  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
@@ -48,21 +48,21 @@ public interface SearchBar {
48 48
 
49 49
     /**
50 50
      * Returns the current search phrase for the search bar.
51
-     * 
51
+     *
52 52
      * @return Current search phrase
53 53
      */
54 54
     String getSearchPhrase();
55 55
 
56 56
     /**
57 57
      * Returns whether the search needs to be case sensitive.
58
-     * 
58
+     *
59 59
      * @return true if the search needs to be case sensitive
60 60
      */
61 61
     boolean isCaseSensitive();
62 62
 
63 63
     /**
64 64
      * Searches the textpane for text.
65
-     * 
65
+     *
66 66
      * @param text the text to search for
67 67
      * @param caseSensitive whether the search is case sensitive
68 68
      */

+ 2
- 2
src/com/dmdirc/ui/interfaces/StatusBarComponent.java 查看文件

@@ -26,10 +26,10 @@ package com.dmdirc.ui.interfaces;
26 26
  * Statusbar component interface
27 27
  */
28 28
 public interface StatusBarComponent {
29
-    
29
+
30 30
     /**
31 31
      * Makes the component visible or invisible.
32
-     * 
32
+     *
33 33
      * @param visible component visibility
34 34
      */
35 35
     void setVisible(final boolean visible);

+ 9
- 9
src/com/dmdirc/ui/messages/IRCTextAttribute.java 查看文件

@@ -32,18 +32,18 @@ import java.util.Map;
32 32
  * keys are used in AttributedCharacterIterator and AttributedString.
33 33
  */
34 34
 public final class IRCTextAttribute extends Attribute {
35
-    
35
+
36 36
     /**
37 37
      * A version number for this class. It should be changed whenever the
38 38
      * class structure is changed (or anything else that would prevent
39 39
      * serialized objects being unserialized with the new class).
40 40
      */
41 41
     private static final long serialVersionUID = 1;
42
-    
42
+
43 43
     /** table of all instances in this class, used by readResolve. */
44 44
     private static final Map<String, IRCTextAttribute> INSTANCE_MAP
45 45
             = new HashMap<String, IRCTextAttribute>(1);
46
-    
46
+
47 47
     /**
48 48
      * Constructs an Attribute with the given name.
49 49
      *
@@ -55,7 +55,7 @@ public final class IRCTextAttribute extends Attribute {
55 55
             INSTANCE_MAP.put(name, this);
56 56
         }
57 57
     }
58
-    
58
+
59 59
     /**
60 60
      * Resolves instances being deserialized to the predefined constants.
61 61
      *
@@ -69,7 +69,7 @@ public final class IRCTextAttribute extends Attribute {
69 69
         if (this.getClass() != IRCTextAttribute.class) {
70 70
             throw new InvalidObjectException("subclass didn't correctly implement readResolve");
71 71
         }
72
-        
72
+
73 73
         final IRCTextAttribute instance = INSTANCE_MAP.get(getName());
74 74
         if (instance == null) {
75 75
             throw new InvalidObjectException("unknown attribute name");
@@ -77,16 +77,16 @@ public final class IRCTextAttribute extends Attribute {
77 77
             return instance;
78 78
         }
79 79
     }
80
-    
80
+
81 81
     /** Hyperlink attribute. */
82 82
     public static final IRCTextAttribute HYPERLINK = new IRCTextAttribute("hyperlink");
83
-    
83
+
84 84
     /** Nickname attribute. */
85 85
     public static final IRCTextAttribute NICKNAME = new IRCTextAttribute("nickname");
86
-    
86
+
87 87
     /** Channel attribute. */
88 88
     public static final IRCTextAttribute CHANNEL = new IRCTextAttribute("channel");
89
-    
89
+
90 90
     /** Smiley attribute. */
91 91
     public static final IRCTextAttribute SMILEY = new IRCTextAttribute("smiley");
92 92
 

+ 3
- 3
src/com/dmdirc/updater/FileComponent.java 查看文件

@@ -25,14 +25,14 @@ package com.dmdirc.updater;
25 25
 /**
26 26
  * This interface is implemented by components that are related to a specific
27 27
  * file.
28
- * 
28
+ *
29 29
  * @author shane
30 30
  */
31 31
 public interface FileComponent {
32
-    
32
+
33 33
     /**
34 34
      * Retrieves the file name of this component.
35
-     * 
35
+     *
36 36
      * @return This component's file name
37 37
      */
38 38
     String getFileName();

+ 6
- 6
src/com/dmdirc/updater/UpdateListener.java 查看文件

@@ -24,25 +24,25 @@ package com.dmdirc.updater;
24 24
 
25 25
 /**
26 26
  * Defines the method that must be implemented by update listeners.
27
- * 
27
+ *
28 28
  * @author chris
29 29
  */
30 30
 public interface UpdateListener {
31
-    
31
+
32 32
     /**
33 33
      * Called when the state of the update has changed.
34
-     * 
34
+     *
35 35
      * @param update The update in question
36 36
      * @param status The new status of the update
37 37
      */
38 38
     void updateStatusChange(Update update, UpdateStatus status);
39
-    
39
+
40 40
     /**
41 41
      * Called when the progress of the current update state has changed.
42
-     * 
42
+     *
43 43
      * @param update The update in question
44 44
      * @param progress The progress (as a percentage) of the update
45 45
      */
46 46
     void updateProgressChange(Update update, float progress);
47
-    
47
+
48 48
 }

+ 20
- 20
src/net/miginfocom/Base64.java 查看文件

@@ -13,7 +13,7 @@ import java.util.Arrays;
13 13
  * (10000 - 1000000 bytes)
14 14
  * compared to <code>sun.misc.Encoder()/Decoder()</code>.<br>
15 15
  * <br>
16
- * 
16
+ *
17 17
  * On byte arrays the encoder is about 20% faster than Jakarta Commons Base64
18 18
  * Codec for encode and
19 19
  * about 50% faster for decoding large arrays. This implementation is about
@@ -23,7 +23,7 @@ import java.util.Arrays;
23 23
  * result has to be recoded
24 24
  * to a <code>String</code> from <code>byte[]</code>, which is very expensive.<br>
25 25
  * <br>
26
- * 
26
+ *
27 27
  * This encode/decode algorithm doesn't create any temporary arrays as many
28 28
  * other codecs do, it only
29 29
  * allocates the resulting array. This produces less garbage and it is possible
@@ -34,7 +34,7 @@ import java.util.Arrays;
34 34
  * arrays but since performance
35 35
  * is quite low it probably does.<br>
36 36
  * <br>
37
- * 
37
+ *
38 38
  * The encoder produces the same output as the Sun one except that the Sun's
39 39
  * encoder appends
40 40
  * a trailing line separator if the last character isn't a pad. Unclear why but
@@ -43,7 +43,7 @@ import java.util.Arrays;
43 43
  * though.<br>
44 44
  * Commons codec seem to always att a trailing line separator.<br>
45 45
  * <br>
46
- * 
46
+ *
47 47
  * <b>Note!</b>
48 48
  * The encode/decode method pairs (types) come in three versions with the
49 49
  * <b>exact</b> same algorithm and
@@ -51,23 +51,23 @@ import java.util.Arrays;
51 51
  * transcoding to/from different
52 52
  * format types. The methods not used can simply be commented out.<br>
53 53
  * <br>
54
- * 
54
+ *
55 55
  * There is also a "fast" version of all decode methods that works the same way
56 56
  * as the normal ones, but
57 57
  * har a few demands on the decoded input. Normally though, these fast verions
58 58
  * should be used if the source if
59 59
  * the input is known and it hasn't bee tampered with.<br>
60 60
  * <br>
61
- * 
61
+ *
62 62
  * If you find the code useful or you find a bug, please send me a note at
63 63
  * base64 @ miginfocom . com.
64
- * 
64
+ *
65 65
  * Licence (BSD):
66 66
  * ==============
67
- * 
67
+ *
68 68
  * Copyright (c) 2004, Mikael Grev, MiG InfoCom AB. (base64 @ miginfocom . com)
69 69
  * All rights reserved.
70
- * 
70
+ *
71 71
  * Redistribution and use in source and binary forms, with or without
72 72
  * modification,
73 73
  * are permitted provided that the following conditions are met:
@@ -84,7 +84,7 @@ import java.util.Arrays;
84 84
  * used to endorse or promote products derived from this software without
85 85
  * specific
86 86
  * prior written permission.
87
- * 
87
+ *
88 88
  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
89 89
  * AND
90 90
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
@@ -103,7 +103,7 @@ import java.util.Arrays;
103 103
  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
104 104
  * POSSIBILITY
105 105
  * OF SUCH DAMAGE.
106
- * 
106
+ *
107 107
  * @version 2.2
108 108
  * @author Mikael Grev
109 109
  *         Date: 2004-aug-02
@@ -129,7 +129,7 @@ public class Base64 {
129 129
     /**
130 130
      * Encodes a raw byte array into a BASE64 <code>char[]</code> representation
131 131
      * i accordance with RFC 2045.
132
-     * 
132
+     *
133 133
      * @param sArr
134 134
      *            The bytes to convert. If <code>null</code> or length 0 an
135 135
      *            empty array will be returned.
@@ -197,7 +197,7 @@ public class Base64 {
197 197
      * Decodes a BASE64 encoded char array. All illegal characters will be
198 198
      * ignored and can handle both arrays with
199 199
      * and without line separators.
200
-     * 
200
+     *
201 201
      * @param sArr
202 202
      *            The source array. <code>null</code> or length 0 will return an
203 203
      *            empty array.
@@ -275,7 +275,7 @@ public class Base64 {
275 275
      * + The array must not contain illegal characters within the encoded string<br>
276 276
      * + The array CAN have illegal characters at the beginning and end, those
277 277
      * will be dealt with appropriately.<br>
278
-     * 
278
+     *
279 279
      * @param sArr
280 280
      *            The source array. Length 0 will return an empty array.
281 281
      *            <code>null</code> will throw an exception.
@@ -355,7 +355,7 @@ public class Base64 {
355 355
     /**
356 356
      * Encodes a raw byte array into a BASE64 <code>byte[]</code> representation
357 357
      * i accordance with RFC 2045.
358
-     * 
358
+     *
359 359
      * @param sArr
360 360
      *            The bytes to convert. If <code>null</code> or length 0 an
361 361
      *            empty array will be returned.
@@ -423,7 +423,7 @@ public class Base64 {
423 423
      * Decodes a BASE64 encoded byte array. All illegal characters will be
424 424
      * ignored and can handle both arrays with
425 425
      * and without line separators.
426
-     * 
426
+     *
427 427
      * @param sArr
428 428
      *            The source array. Length 0 will return an empty array.
429 429
      *            <code>null</code> will throw an exception.
@@ -500,7 +500,7 @@ public class Base64 {
500 500
      * + The array must not contain illegal characters within the encoded string<br>
501 501
      * + The array CAN have illegal characters at the beginning and end, those
502 502
      * will be dealt with appropriately.<br>
503
-     * 
503
+     *
504 504
      * @param sArr
505 505
      *            The source array. Length 0 will return an empty array.
506 506
      *            <code>null</code> will throw an exception.
@@ -580,7 +580,7 @@ public class Base64 {
580 580
     /**
581 581
      * Encodes a raw byte array into a BASE64 <code>String</code> representation
582 582
      * i accordance with RFC 2045.
583
-     * 
583
+     *
584 584
      * @param sArr
585 585
      *            The bytes to convert. If <code>null</code> or length 0 an
586 586
      *            empty array will be returned.
@@ -606,7 +606,7 @@ public class Base64 {
606 606
      * <code>decode(str.toCharArray())</code> instead. That
607 607
      * will create a temporary array though. This version will use
608 608
      * <code>str.charAt(i)</code> to iterate the string.
609
-     * 
609
+     *
610 610
      * @param str
611 611
      *            The source string. <code>null</code> or length 0 will return
612 612
      *            an empty array.
@@ -685,7 +685,7 @@ public class Base64 {
685 685
      * + The array must not contain illegal characters within the encoded string<br>
686 686
      * + The array CAN have illegal characters at the beginning and end, those
687 687
      * will be dealt with appropriately.<br>
688
-     * 
688
+     *
689 689
      * @param s
690 690
      *            The source string. Length 0 will return an empty array.
691 691
      *            <code>null</code> will throw an exception.

Loading…
取消
儲存