summaryrefslogtreecommitdiff
path: root/altosui/AltosFlightUI.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/AltosFlightUI.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/AltosFlightUI.java')
-rw-r--r--altosui/AltosFlightUI.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/altosui/AltosFlightUI.java b/altosui/AltosFlightUI.java
index 0d21d296..b31de12c 100644
--- a/altosui/AltosFlightUI.java
+++ b/altosui/AltosFlightUI.java
@@ -179,7 +179,7 @@ public class AltosFlightUI extends AltosUIFrame implements AltosFlightDisplay, A
Container bag;
AltosFreqList frequencies;
- JComboBox telemetries;
+ JComboBox<String> telemetries;
JLabel telemetry;
ActionListener show_timer;
@@ -225,7 +225,7 @@ public class AltosFlightUI extends AltosUIFrame implements AltosFlightDisplay, A
// Telemetry format menu
if (reader.supports_telemetry(Altos.ao_telemetry_standard)) {
- telemetries = new JComboBox();
+ telemetries = new JComboBox<String>();
for (int i = 1; i <= Altos.ao_telemetry_max; i++)
telemetries.addItem(Altos.telemetry_name(i));
int telemetry = AltosPreferences.telemetry(serial);