Ignore:
Timestamp:
2014-07-14T04:18:06+02:00 (10 years ago)
Author:
donvip
Message:

[josm_plugins] fix compilation warnings

Location:
applications/editors/josm/plugins/tracer2
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/tracer2/.classpath

    r30047 r30532  
    22<classpath>
    33        <classpathentry kind="src" path="src"/>
    4         <classpathentry kind="src" path="test/src"/>
    5         <!-- <classpathentry exported="true" kind="con" path="GROOVY_SUPPORT"/>
    6         <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
    7         <classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
    8         <classpathentry kind="lib" path="/JOSM/dist/josm-custom.jar" sourcepath="/JOSM/src"/>
    9         <classpathentry kind="lib" path="/JOSM/test/build" sourcepath="/JOSM/test/functional"/>
    10         <classpathentry kind="lib" path="test/config"/>
    11         <classpathentry kind="output" path="build"/> -->
     4        <classpathentry combineaccessrules="false" kind="src" path="/JOSM"/>
     5        <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
     6        <classpathentry kind="output" path="bin"/>
    127</classpath>
  • applications/editors/josm/plugins/tracer2/src/org/openstreetmap/josm/plugins/tracer2/preferences/ServerParamDialog.java

    r30049 r30532  
    5656    private JTextField m_oDescription = new JTextField();
    5757    private JTextArea m_oUrl = new JTextArea(5,5);
    58     private JComboBox m_oTileSize;
    59     private JComboBox m_oResolution;
     58    private JComboBox<String> m_oTileSize;
     59    private JComboBox<String> m_oResolution;
    6060    //private JTextField m_oSkipBottom = new JTextField();
    61     private JComboBox m_oMode;
     61    private JComboBox<String> m_oMode;
    6262    private JTextField m_oThreshold = new JTextField();
    63     private JComboBox m_oPointsPerCircle;
     63    private JComboBox<String> m_oPointsPerCircle;
    6464    private JTextField m_oTag = new JTextField();
    6565    private JTextField m_oPreferredValues = new JTextField();
     
    112112    }
    113113   
    114     private void loadComboBox( JComboBox c, String strValue, String[] astrValues ) {
     114    private void loadComboBox( JComboBox<?> c, String strValue, String[] astrValues ) {
    115115        int pos = 0;
    116116        for ( String str: astrValues ) {
     
    123123    }
    124124   
    125     private String saveComboBox( JComboBox c, String[] astrValues ) {
     125    private String saveComboBox( JComboBox<?> c, String[] astrValues ) {
    126126        return astrValues[c.getSelectedIndex()];
    127127    }
     
    140140        setButtonIcons(new String[] { "ok.png", "cancel.png" });
    141141       
    142         m_oTileSize = new JComboBox(m_astrTileSize);
    143         m_oResolution = new JComboBox(m_astrResolution);
    144         m_oMode = new JComboBox(m_astrMode);
    145         m_oPointsPerCircle = new JComboBox(m_astrPointsPerCircle);
     142        m_oTileSize = new JComboBox<>(m_astrTileSize);
     143        m_oResolution = new JComboBox<>(m_astrResolution);
     144        m_oMode = new JComboBox<>(m_astrMode);
     145        m_oPointsPerCircle = new JComboBox<>(m_astrPointsPerCircle);
    146146       
    147147        load();
  • applications/editors/josm/plugins/tracer2/src/org/openstreetmap/josm/plugins/tracer2/preferences/ServerParamSelectDialog.java

    r30049 r30532  
    3434public class ServerParamSelectDialog extends JPanel {
    3535       
    36     /**
    37          *
    38          */
    39         private static final long serialVersionUID = 5655941545321036641L;
    40        
    41         private JComboBox m_oComboBox;
     36        private JComboBox<String> m_oComboBox;
    4237    List<ServerParam> m_listServerParam;
    4338    private boolean m_bShow = true;
     
    7469                i++;
    7570        }
    76         m_oComboBox = new JComboBox(astr);
     71        m_oComboBox = new JComboBox<>(astr);
    7772        m_oComboBox.setSelectedIndex(pos);
    7873       
Note: See TracChangeset for help on using the changeset viewer.