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

[josm_plugins] fix compilation warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gui/ElevationProfileDialog.java

    r30381 r30532  
    6363    private final JLabel totalTimeLabel;
    6464    private final JLabel distLabel;
    65     private final JComboBox trackCombo;
     65    private final JComboBox<IElevationProfile> trackCombo;
    6666    private final JButton zoomButton;
    6767
     
    170170        zoomButton.setEnabled(false);
    171171
    172         trackCombo = new JComboBox(new TrackModel());
     172        trackCombo = new JComboBox<>(new TrackModel());
    173173        trackCombo.setPreferredSize(new Dimension(200, 24)); // HACK!
    174174        trackCombo.setEnabled(false); // we have no model on startup
     
    254254     * that the model has changed.
    255255     */
    256     @SuppressWarnings("unchecked") // TODO: Can be removed in Java 1.7
    257256    private void updateView() {
    258257        if (model == null) {
     
    410409    }
    411410
    412     @SuppressWarnings("rawtypes") // TODO: Can be removed in Java 1.7
    413     class TrackModel implements ComboBoxModel {
     411    class TrackModel implements ComboBoxModel<IElevationProfile> {
    414412        private Collection<ListDataListener> listeners;
    415413
     
    445443
    446444        @Override
    447         public Object getSelectedItem() {
     445        public IElevationProfile getSelectedItem() {
    448446            if (model == null) return null;
    449447
     
    460458            }
    461459        }
    462 
    463460    }
    464461}
Note: See TracChangeset for help on using the changeset viewer.