summaryrefslogtreecommitdiff
path: root/altosui/AltosConfigFreqUI.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-05-25 20:47:49 -0700
committerKeith Packard <keithp@keithp.com>2014-05-25 20:52:37 -0700
commit4ac7797d3efb9cc2d9fae88519f55e40b1050224 (patch)
tree5348eaabf15e552eb3b4f37dfee4190d4cc05979 /altosui/AltosConfigFreqUI.java
parentb60a3689910731d9bdb8a431a3dcc9e99f961b35 (diff)
altosui/altosuilib: Cleanup -Xlint:unchecked warnings
Add parametric types to avoid unchecked warnings. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosConfigFreqUI.java')
-rw-r--r--altosui/AltosConfigFreqUI.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/altosui/AltosConfigFreqUI.java b/altosui/AltosConfigFreqUI.java
index 58778057..663782f0 100644
--- a/altosui/AltosConfigFreqUI.java
+++ b/altosui/AltosConfigFreqUI.java
@@ -164,8 +164,8 @@ public class AltosConfigFreqUI extends AltosUIDialog implements ActionListener {
Frame frame;
LinkedList<ActionListener> listeners;
- class FrequencyList extends JList {
- DefaultListModel list_model;
+ class FrequencyList extends JList<AltosFrequency> {
+ DefaultListModel<AltosFrequency> list_model;
public void add(AltosFrequency frequency) {
int i;
@@ -226,7 +226,7 @@ public class AltosConfigFreqUI extends AltosUIDialog implements ActionListener {
}
public FrequencyList(AltosFrequency[] in_frequencies) {
- list_model = new DefaultListModel();
+ list_model = new DefaultListModel<AltosFrequency>();
setModel(list_model);
setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
setLayoutOrientation(JList.HORIZONTAL_WRAP);