Browse Source

Minor tidying.

pull/195/head
Chris Smith 9 years ago
parent
commit
9b22ed3c7c

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

@@ -29,6 +29,6 @@ import dagger.Module;
29 29
 /**
30 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 33
 public class CalcModule {
34 34
 }

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

@@ -29,6 +29,6 @@ import dagger.Module;
29 29
 /**
30 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 33
 public class ConditionalExecuteModule {
34 34
 }

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

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

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

@@ -31,7 +31,7 @@ import dagger.Provides;
31 31
 /**
32 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 35
 public class NickColourModule {
36 36
 
37 37
     /** The domain for plugin settings. */

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

@@ -100,9 +100,9 @@ public class PackingTable extends JTable {
100 100
         this.lastColumnFit = lastColumnFit;
101 101
 
102 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 108
     @Override

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

@@ -121,14 +121,14 @@ public class TextPaneInputField extends JEditorPane implements InputField,
121 121
 
122 122
     @Override
123 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 128
     @Override
129 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 134
     @Override

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

@@ -120,7 +120,7 @@ class MessagePopup extends StatusbarTogglePanel<JLabel> {
120 120
     /* {@inheritDoc} */
121 121
     @Override
122 122
     protected Color getPopupForeground() {
123
-        return super.getForeground();
123
+        return getForeground();
124 124
     }
125 125
 
126 126
     /** Message history status bar popup window. */

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

@@ -30,7 +30,7 @@ public class NoWrapParagraphView extends ParagraphView {
30 30
 
31 31
     @Override
32 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 View File

@@ -136,13 +136,12 @@ public class TopicLabel extends JPanel {
136 136
         }
137 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 140
         add(label, "wmax 450, grow, push, wrap, gapleft 5, pad 0");
142 141
 
143 142
         add(new JSeparator(), "newline, span, growx, pushx");
144 143
 
145
-        super.validate();
144
+        validate();
146 145
     }
147 146
 
148 147
     /**

Loading…
Cancel
Save