diff options
author | Keith Packard <keithp@keithp.com> | 2014-05-25 20:47:49 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2014-05-25 20:52:37 -0700 |
commit | 4ac7797d3efb9cc2d9fae88519f55e40b1050224 (patch) | |
tree | 5348eaabf15e552eb3b4f37dfee4190d4cc05979 /altosui/AltosScanUI.java | |
parent | b60a3689910731d9bdb8a431a3dcc9e99f961b35 (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/AltosScanUI.java')
-rw-r--r-- | altosui/AltosScanUI.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/altosui/AltosScanUI.java b/altosui/AltosScanUI.java index 419fe957..5cc74a77 100644 --- a/altosui/AltosScanUI.java +++ b/altosui/AltosScanUI.java @@ -75,7 +75,7 @@ class AltosScanResult { } } -class AltosScanResults extends LinkedList<AltosScanResult> implements ListModel { +class AltosScanResults extends LinkedList<AltosScanResult> implements ListModel<AltosScanResult> { LinkedList<ListDataListener> listeners = new LinkedList<ListDataListener>(); @@ -129,7 +129,7 @@ public class AltosScanUI AltosDevice device; AltosConfigData config_data; AltosTelemetryReader reader; - private JList list; + private JList<AltosScanResult> list; private JLabel scanning_label; private JLabel frequency_label; private JLabel telemetry_label; @@ -435,7 +435,7 @@ public class AltosScanUI int y_offset = 3 + (Altos.ao_telemetry_max - Altos.ao_telemetry_min + 1); - list = new JList(results) { + list = new JList<AltosScanResult>(results) { //Subclass JList to workaround bug 4832765, which can cause the //scroll pane to not let the user easily scroll up to the beginning //of the list. An alternative would be to set the unitIncrement @@ -548,4 +548,4 @@ public class AltosScanUI setVisible(true); } -}
\ No newline at end of file +} |