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/wikipedia/src/org/wikipedia/WikipediaToggleDialog.java

    r30100 r30532  
    6060    final StringProperty wikipediaLang = new StringProperty("wikipedia.lang", LanguageInfo.getJOSMLocaleCode().substring(0, 2));
    6161    final Set<String> articles = new HashSet<String>();
    62     final DefaultListModel model = new DefaultListModel();
    63     final JList list = new JList(model) {
     62    final DefaultListModel<WikipediaEntry> model = new DefaultListModel<>();
     63    final JList<WikipediaEntry> list = new JList<WikipediaEntry>(model) {
    6464
    6565        {
     
    8484
    8585                @Override
    86                 public JLabel getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
     86                public JLabel getListCellRendererComponent(JList<?> list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
    8787                    JLabel label = (JLabel) super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
    8888                    final WikipediaEntry entry = (WikipediaEntry) value;
Note: See TracChangeset for help on using the changeset viewer.