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 /altosuilib/AltosDeviceDialog.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 'altosuilib/AltosDeviceDialog.java')
| -rw-r--r-- | altosuilib/AltosDeviceDialog.java | 16 | 
1 files changed, 8 insertions, 8 deletions
diff --git a/altosuilib/AltosDeviceDialog.java b/altosuilib/AltosDeviceDialog.java index 0a3ddb7b..7fb23e13 100644 --- a/altosuilib/AltosDeviceDialog.java +++ b/altosuilib/AltosDeviceDialog.java @@ -23,13 +23,13 @@ import java.awt.event.*;  public abstract class AltosDeviceDialog extends AltosUIDialog implements ActionListener { -	private AltosDevice	value; -	private JList		list; -	private JButton		cancel_button; -	private JButton		select_button; -	public Frame		frame; -	public int		product; -	public JPanel		buttonPane; +	private AltosDevice		value; +	private JList<AltosDevice>	list; +	private JButton			cancel_button; +	private JButton			select_button; +	public Frame			frame; +	public int			product; +	public JPanel			buttonPane;  	public AltosDevice getValue() {  		return value; @@ -65,7 +65,7 @@ public abstract class AltosDeviceDialog extends AltosUIDialog implements ActionL  			select_button.setEnabled(false);  		getRootPane().setDefaultButton(select_button); -		list = new JList(devices) { +		list = new JList<AltosDevice>(devices) {  				//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  | 
