ソースを参照

Tidying.

pull/152/head
Greg Holmes 9年前
コミット
23d030ba4e

+ 3
- 3
ui_swing/src/com/dmdirc/addons/ui_swing/dialogs/StandardInputDialog.java ファイルの表示

@@ -117,7 +117,7 @@ public class StandardInputDialog extends StandardDialog {
117 117
             final String title, final String message,
118 118
             final Function<String, Boolean> save,
119 119
             final Runnable cancel) {
120
-        this(owner, modal, iconManager, title, message, o -> new ValidationResponse(), save,
120
+        this(owner, modal, iconManager, title, message, ValidationResponse::new, save,
121 121
                 cancel);
122 122
     }
123 123
 
@@ -137,7 +137,7 @@ public class StandardInputDialog extends StandardDialog {
137 137
             final Validator<String> validator,
138 138
             final Consumer<String> save) {
139 139
         this(owner, modal, iconManager, title, message, validator,
140
-                (String s) -> { save.accept(s); return true; }, Runnables.doNothing());
140
+                (final String s) -> { save.accept(s); return true; }, Runnables.doNothing());
141 141
     }
142 142
 
143 143
     /**
@@ -174,7 +174,7 @@ public class StandardInputDialog extends StandardDialog {
174 174
             final Consumer<String> save,
175 175
             final Runnable cancel) {
176 176
         this(owner, modal, iconManager, title, message, validator,
177
-                (String s) -> { save.accept(s); return true; }, cancel);
177
+                (final String s) -> { save.accept(s); return true; }, cancel);
178 178
     }
179 179
 
180 180
     /**

+ 0
- 9
ui_swing/src/com/dmdirc/addons/ui_swing/framemanager/tree/NodeLabel.java ファイルの表示

@@ -167,15 +167,6 @@ public class NodeLabel extends JPanel {
167 167
         return notificationColour;
168 168
     }
169 169
 
170
-    @Override
171
-    public int hashCode() {
172
-        if (window == null) {
173
-            return super.hashCode();
174
-        }
175
-
176
-        return window.hashCode();
177
-    }
178
-
179 170
     @Override
180 171
     public Font getFont() {
181 172
         return UIManager.getFont("TextPane.font");

読み込み中…
キャンセル
保存