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/routing/src/com/innovant/josm/plugin/routing/gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/routing/src/com/innovant/josm/plugin/routing/gui/RoutingDialog.java

    r30361 r30532  
    5252public class RoutingDialog extends ToggleDialog {
    5353
    54     private final DefaultListModel model;
    55     private JList jList = null;
     54    private final DefaultListModel<String> model;
     55    private JList<String> jList = null;
    5656    private JScrollPane jScrollPane = null;
    5757
     
    6464        super(tr("Routing"), "routing", tr("Open a list of routing nodes"),
    6565                Shortcut.registerShortcut("subwindow:routing", tr("Toggle: {0}", tr("Routing")), KeyEvent.VK_R, Shortcut.ALT_CTRL_SHIFT), 150);
    66         model = new DefaultListModel();
     66        model = new DefaultListModel<>();
    6767        createLayout(getJScrollPane(), false, null);
    6868    }
     
    8888     * @return javax.swing.JList
    8989     */
    90     private JList getJList() {
     90    private JList<String> getJList() {
    9191        if (jList == null) {
    92             jList = new JList();
     92            jList = new JList<>();
    9393            jList.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);
    9494            jList.setModel(model);
  • applications/editors/josm/plugins/routing/src/com/innovant/josm/plugin/routing/gui/RoutingPreferenceDialog.java

    r30361 r30532  
    110110                JPanel p = new JPanel(new GridBagLayout());
    111111                p.add(new JLabel(tr("Weight")), GBC.std().insets(0, 0, 5, 0));
    112                 JComboBox key = new JComboBox();
     112                JComboBox<String> key = new JComboBox<>();
    113113                for (OsmWayTypes pk : OsmWayTypes.values())
    114114                    key.addItem(pk.getTag());
Note: See TracChangeset for help on using the changeset viewer.