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

[josm_plugins] fix compilation warnings

Location:
applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/plugin/dialogs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/plugin/dialogs/GraphViewDialog.java

    r29854 r30532  
    5252    private final LinkedHashMap<String, ColorScheme> availableColorSchemes;
    5353
    54 
    5554    private final GraphViewPreferences preferences;
    5655    private final GraphViewPlugin plugin;
    5756
    58     private final JComboBox rulesetComboBox;
    59     private final JComboBox bookmarkComboBox;
    60     private final JComboBox colorSchemeComboBox;
     57    private final JComboBox<String> rulesetComboBox;
     58    private final JComboBox<String> bookmarkComboBox;
     59    private final JComboBox<String> colorSchemeComboBox;
    6160
    6261    /**
     
    111110            selectionPanel.add(rulesetLabel);
    112111
    113             rulesetComboBox = new JComboBox();
     112            rulesetComboBox = new JComboBox<>();
    114113            rulesetComboBox.addActionListener(rulesetActionListener);
    115114            gbcComboBox.gridy = 0;
     
    125124            selectionPanel.add(bookmarkLabel);
    126125
    127             bookmarkComboBox = new JComboBox();
     126            bookmarkComboBox = new JComboBox<>();
    128127            bookmarkComboBox.addActionListener(bookmarkActionListener);
    129128            gbcComboBox.gridy = 1;
     
    139138            selectionPanel.add(colorSchemeLabel);
    140139
    141             colorSchemeComboBox = new JComboBox();
     140            colorSchemeComboBox = new JComboBox<>();
    142141            for (String colorSchemeName : availableColorSchemes.keySet()) {
    143142                colorSchemeComboBox.addItem(colorSchemeName);
     
    285284
    286285        bookmarkComboBox.addActionListener(bookmarkActionListener);
    287 
    288286    }
    289 
    290287}
  • applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/plugin/dialogs/GraphViewPreferenceEditor.java

    r27863 r30532  
    5757    private JButton selectRulesetFolderButton;
    5858
    59     private JComboBox bookmarkComboBox;
     59    private JComboBox<String> bookmarkComboBox;
    6060    private JButton editBookmarkButton;
    6161    private JButton deleteBookmarkButton;
     
    174174        vehiclePanel.setLayout(new BoxLayout(vehiclePanel, BoxLayout.Y_AXIS));
    175175
    176         bookmarkComboBox = new JComboBox();
     176        bookmarkComboBox = new JComboBox<>();
    177177        vehiclePanel.add(bookmarkComboBox);
    178178
Note: See TracChangeset for help on using the changeset viewer.