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

see #8465 - enable -Xlint:cast and fix associated warnings

File:
1 edited

Legend:

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

    r7020 r7021  
    623623                @Override
    624624                public Component getListCellRendererComponent(JList<? extends ActionDefinition> list,
    625                         ActionDefinition value, int index, boolean isSelected, boolean cellHasFocus) {
     625                        ActionDefinition action, int index, boolean isSelected, boolean cellHasFocus) {
    626626                    String s;
    627627                    Icon i;
    628                     ActionDefinition action = (ActionDefinition)value;
    629628                    if (!action.isSeparator()) {
    630629                        s = action.getDisplayName();
     
    646645                    if (sel) {
    647646                        actionsTree.clearSelection();
    648                         ActionDefinition action = (ActionDefinition) selected.get(selectedList.getSelectedIndex());
     647                        ActionDefinition action = selected.get(selectedList.getSelectedIndex());
    649648                        actionParametersModel.setCurrentAction(action);
    650649                        actionParametersPanel.setVisible(actionParametersModel.getRowCount() > 0);
     
    864863            ActionParser parser = new ActionParser(null);
    865864            for (int i = 0; i < selected.size(); ++i) {
    866                 ActionDefinition action = (ActionDefinition)selected.get(i);
     865                ActionDefinition action = selected.get(i);
    867866                if (action.isSeparator()) {
    868867                    t.add("|");
Note: See TracChangeset for help on using the changeset viewer.