Преглед на файлове

Changed setIcon name

Removed magic number checks


git-svn-id: http://svn.dmdirc.com/trunk@613 00569f92-eb28-0410-84fd-f71c24880f
tags/0.3
Gregory Holmes преди 17 години
родител
ревизия
9f7355a02d
променени са 2 файла, в които са добавени 2 реда и са изтрити 3 реда
  1. 0
    1
      checkstyle/dmdirc_checks.xml
  2. 2
    2
      src/uk/org/ownage/dmdirc/ui/components/StatusBar.java

+ 0
- 1
checkstyle/dmdirc_checks.xml Целия файл

@@ -124,7 +124,6 @@
124 124
         <module name="HiddenField"/>
125 125
         <module name="IllegalInstantiation"/>
126 126
         <module name="InnerAssignment"/>
127
-        <module name="MagicNumber"/>
128 127
         <module name="MissingSwitchDefault"/>
129 128
         <module name="RedundantThrows"/>
130 129
         <module name="SimplifyBooleanExpression"/>

+ 2
- 2
src/uk/org/ownage/dmdirc/ui/components/StatusBar.java Целия файл

@@ -107,13 +107,13 @@ public final class StatusBar extends JPanel implements MouseListener {
107 107
     }
108 108
     
109 109
     /**
110
-     * sets the message in the status bar.
110
+     * sets the icon in the status bar.
111 111
      *
112 112
      * @param newIcon Icon to display
113 113
      * @param newNotifier status error notifier to be notified for events on 
114 114
      * this error
115 115
      */
116
-    public void setMessage(final ImageIcon newIcon, 
116
+    public void setIcon(final ImageIcon newIcon, 
117 117
             final StatusErrorNotifier newNotifier) {
118 118
         iconLabel.setIcon(newIcon);
119 119
         errorNotifier = newNotifier;

Loading…
Отказ
Запис