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/AltosConfigPyroUI.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/AltosConfigPyroUI.java')
-rw-r--r-- | altosui/AltosConfigPyroUI.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/altosui/AltosConfigPyroUI.java b/altosui/AltosConfigPyroUI.java index b667b15a..cd42a3b0 100644 --- a/altosui/AltosConfigPyroUI.java +++ b/altosui/AltosConfigPyroUI.java @@ -50,7 +50,7 @@ public class AltosConfigPyroUI public int flag; public JCheckBox enable; public JTextField value; - public JComboBox combo; + public JComboBox<String> combo; AltosConfigPyroUI ui; boolean setting; @@ -159,7 +159,7 @@ public class AltosConfigPyroUI c.insets = il; if ((flag & AltosPyro.pyro_state_value) != 0) { make_state_names(); - combo = new JComboBox(state_names); + combo = new JComboBox<String>(state_names); combo.addItemListener(this); pane.add(combo, c); } else { |