Browse Source

Remove warnings in updateconfigpanel

Change-Id: I688c83f71bb33bc81470dc2e95b678af420c0cf9
Reviewed-on: http://gerrit.dmdirc.com/3142
Reviewed-by: Chris Smith <chris@dmdirc.com>
Automatic-Compile: DMDirc Build Manager
tags/0.8
Greg Holmes 10 years ago
parent
commit
5a5c1a07d4

+ 3
- 7
src/com/dmdirc/addons/ui_swing/dialogs/prefs/UpdateConfigPanel.java View File

@@ -56,11 +56,7 @@ import net.miginfocom.swing.MigLayout;
56 56
 public class UpdateConfigPanel extends JPanel implements ActionListener,
57 57
         PreferencesInterface, ConfigChangeListener {
58 58
 
59
-    /**
60
-     * A version number for this class. It should be changed whenever the class structure is changed
61
-     * (or anything else that would prevent serialized objects being unserialized with the new
62
-     * class).
63
-     */
59
+    /** A version number for this class. */
64 60
     private static final long serialVersionUID = 1;
65 61
     /** Global checkbox. */
66 62
     private JCheckBox enable;
@@ -73,7 +69,7 @@ public class UpdateConfigPanel extends JPanel implements ActionListener,
73 69
     /** Check now button. */
74 70
     private JButton checkNow;
75 71
     /** Update channel. */
76
-    private JComboBox updateChannel;
72
+    private JComboBox<UpdateChannel> updateChannel;
77 73
     /** The configuration to write settings changes to. */
78 74
     private final ConfigProvider userConfig;
79 75
     /** The configuration to read global settings from. */
@@ -134,7 +130,7 @@ public class UpdateConfigPanel extends JPanel implements ActionListener,
134 130
         table = new PackingTable(tableModel, scrollPane);
135 131
         checkNow = new JButton("Check now");
136 132
         checkNow.setEnabled(globalConfig.getOptionBool("updater", "enable"));
137
-        updateChannel = new JComboBox(new DefaultComboBoxModel(UpdateChannel.values()));
133
+        updateChannel = new JComboBox<>(new DefaultComboBoxModel<>(UpdateChannel.values()));
138 134
 
139 135
         enable.setSelected(globalConfig.getOptionBool("updater", "enable"));
140 136
         UpdateChannel channel = UpdateChannel.NONE;

Loading…
Cancel
Save