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/widgets/ComboBoxHistory.java

    r7015 r7021  
    2929    @Override
    3030    public void addElement(AutoCompletionListItem o) {
    31         String newEntry = ((AutoCompletionListItem)o).getValue();
     31        String newEntry = o.getValue();
    3232
    3333        // if history contains this object already, delete it,
    3434        // so that it looks like a move to the top
    3535        for (int i = 0; i < getSize(); i++) {
    36             String oldEntry = ((AutoCompletionListItem) getElementAt(i)).getValue();
     36            String oldEntry = getElementAt(i).getValue();
    3737            if(oldEntry.equals(newEntry)) {
    3838                removeElementAt(i);
     
    7575            public AutoCompletionListItem next() {
    7676                position++;
    77                 return (AutoCompletionListItem)getElementAt(position);
     77                return getElementAt(position);
    7878            }
    7979        };
Note: See TracChangeset for help on using the changeset viewer.