Sfoglia il codice sorgente

Minor tidying.

pull/195/head
Chris Smith 9 anni fa
parent
commit
9b22ed3c7c

+ 1
- 1
calc/src/com/dmdirc/addons/calc/CalcModule.java Vedi File

29
 /**
29
 /**
30
  * DI Module for the calc plugin.
30
  * DI Module for the calc plugin.
31
  */
31
  */
32
-@Module(injects = {CalcCommand.class}, addsTo = ClientModule.class)
32
+@Module(injects = CalcCommand.class, addsTo = ClientModule.class)
33
 public class CalcModule {
33
 public class CalcModule {
34
 }
34
 }

+ 1
- 1
conditional_execute/src/com/dmdirc/addons/conditional_execute/ConditionalExecuteModule.java Vedi File

29
 /**
29
 /**
30
  * DI for the conditional execute plugin.
30
  * DI for the conditional execute plugin.
31
  */
31
  */
32
-@Module(injects = {ConditionalExecuteCommand.class}, addsTo = ClientModule.class)
32
+@Module(injects = ConditionalExecuteCommand.class, addsTo = ClientModule.class)
33
 public class ConditionalExecuteModule {
33
 public class ConditionalExecuteModule {
34
 }
34
 }

+ 1
- 1
dcc/src/com/dmdirc/addons/dcc/TransferContainer.java Vedi File

73
     private Parser parser;
73
     private Parser parser;
74
     /** Connection the send was initiated on. */
74
     /** Connection the send was initiated on. */
75
     @Nullable
75
     @Nullable
76
-    private Connection connection;
76
+    private final Connection connection;
77
     /** Show open button. */
77
     /** Show open button. */
78
     private final boolean showOpen = Desktop.isDesktopSupported()
78
     private final boolean showOpen = Desktop.isDesktopSupported()
79
             && Desktop.getDesktop().isSupported(Desktop.Action.OPEN);
79
             && Desktop.getDesktop().isSupported(Desktop.Action.OPEN);

+ 1
- 1
nickcolours/src/com/dmdirc/addons/nickcolours/NickColourModule.java Vedi File

31
 /**
31
 /**
32
  * DI module for the nick colour plugin.
32
  * DI module for the nick colour plugin.
33
  */
33
  */
34
-@Module(injects = {NickColourManager.class}, addsTo = SwingModule.class)
34
+@Module(injects = NickColourManager.class, addsTo = SwingModule.class)
35
 public class NickColourModule {
35
 public class NickColourModule {
36
 
36
 
37
     /** The domain for plugin settings. */
37
     /** The domain for plugin settings. */

+ 3
- 3
ui_swing/src/com/dmdirc/addons/ui_swing/components/PackingTable.java Vedi File

100
         this.lastColumnFit = lastColumnFit;
100
         this.lastColumnFit = lastColumnFit;
101
 
101
 
102
         super.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
102
         super.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
103
-        super.getTableHeader().setResizingAllowed(false);
104
-        super.getTableHeader().setReorderingAllowed(false);
105
-        super.setDragEnabled(false);
103
+        getTableHeader().setResizingAllowed(false);
104
+        getTableHeader().setReorderingAllowed(false);
105
+        setDragEnabled(false);
106
     }
106
     }
107
 
107
 
108
     @Override
108
     @Override

+ 4
- 4
ui_swing/src/com/dmdirc/addons/ui_swing/components/inputfields/TextPaneInputField.java Vedi File

121
 
121
 
122
     @Override
122
     @Override
123
     protected void setUI(final ComponentUI newUI) {
123
     protected void setUI(final ComponentUI newUI) {
124
-        super.setUI(new BasicEditorPaneUI());
125
-        super.setBorder(BorderFactory.createEmptyBorder(3, 3, 3, 3));
124
+        setUI(new BasicEditorPaneUI());
125
+        setBorder(BorderFactory.createEmptyBorder(3, 3, 3, 3));
126
     }
126
     }
127
 
127
 
128
     @Override
128
     @Override
129
     public void updateUI() {
129
     public void updateUI() {
130
-        super.setUI(new BasicEditorPaneUI());
131
-        super.setBorder(BorderFactory.createEmptyBorder(3, 3, 3, 3));
130
+        setUI(new BasicEditorPaneUI());
131
+        setBorder(BorderFactory.createEmptyBorder(3, 3, 3, 3));
132
     }
132
     }
133
 
133
 
134
     @Override
134
     @Override

+ 1
- 1
ui_swing/src/com/dmdirc/addons/ui_swing/components/statusbar/MessagePopup.java Vedi File

120
     /* {@inheritDoc} */
120
     /* {@inheritDoc} */
121
     @Override
121
     @Override
122
     protected Color getPopupForeground() {
122
     protected Color getPopupForeground() {
123
-        return super.getForeground();
123
+        return getForeground();
124
     }
124
     }
125
 
125
 
126
     /** Message history status bar popup window. */
126
     /** Message history status bar popup window. */

+ 1
- 1
ui_swing/src/com/dmdirc/addons/ui_swing/components/text/NoWrapParagraphView.java Vedi File

30
 
30
 
31
     @Override
31
     @Override
32
     public float getMinimumSpan(final int axis) {
32
     public float getMinimumSpan(final int axis) {
33
-        return super.getPreferredSpan(axis);
33
+        return getPreferredSpan(axis);
34
     }
34
     }
35
 
35
 
36
 }
36
 }

+ 2
- 3
ui_swing/src/com/dmdirc/addons/ui_swing/dialogs/channelsetting/TopicLabel.java Vedi File

136
         }
136
         }
137
         add(label, "wmax 450, grow, push, wrap, gapleft 5, pad 0");
137
         add(label, "wmax 450, grow, push, wrap, gapleft 5, pad 0");
138
 
138
 
139
-        label = new TextLabel("on "
140
-                + new Date(topic.getTime() * MILLIS_IN_SECOND).toString());
139
+        label = new TextLabel("on " + new Date(topic.getTime() * MILLIS_IN_SECOND));
141
         add(label, "wmax 450, grow, push, wrap, gapleft 5, pad 0");
140
         add(label, "wmax 450, grow, push, wrap, gapleft 5, pad 0");
142
 
141
 
143
         add(new JSeparator(), "newline, span, growx, pushx");
142
         add(new JSeparator(), "newline, span, growx, pushx");
144
 
143
 
145
-        super.validate();
144
+        validate();
146
     }
145
     }
147
 
146
 
148
     /**
147
     /**

Loading…
Annulla
Salva