Ignore:
Timestamp:
2014-04-29T01:09:09+02:00 (12 years ago)
Author:
Don-vip
Message:

see #8465 - fix remaining compilation warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/ToolbarPreferences.java

    r7005 r7020  
    619619            });
    620620
    621             ListCellRenderer renderer = new DefaultListCellRenderer(){
    622                 @Override public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
     621            ListCellRenderer<ActionDefinition> renderer = new ListCellRenderer<ActionDefinition>() {
     622                final DefaultListCellRenderer def = new DefaultListCellRenderer();
     623                @Override
     624                public Component getListCellRendererComponent(JList<? extends ActionDefinition> list,
     625                        ActionDefinition value, int index, boolean isSelected, boolean cellHasFocus) {
    623626                    String s;
    624627                    Icon i;
     
    631634                        s = tr("Separator");
    632635                    }
    633                     JLabel l = (JLabel)super.getListCellRendererComponent(list, s, index, isSelected, cellHasFocus);
     636                    JLabel l = (JLabel)def.getListCellRendererComponent(list, s, index, isSelected, cellHasFocus);
    634637                    l.setIcon(i);
    635638                    return l;
     
    654657            selectedList.setTransferHandler(new TransferHandler() {
    655658                @Override
     659                @SuppressWarnings("unchecked")
    656660                protected Transferable createTransferable(JComponent c) {
    657661                    List<ActionDefinition> actions = new ArrayList<>();
     
    686690                    try {
    687691                        int dropIndex = selectedList.locationToIndex(selectedList.getMousePosition(true));
     692                        @SuppressWarnings("unchecked")
    688693                        List<ActionDefinition> draggedData = (List<ActionDefinition>) t.getTransferData(ACTION_FLAVOR);
    689694
Note: See TracChangeset for help on using the changeset viewer.