Ignore:
Timestamp:
2014-04-26T03:53:35+02:00 (10 years ago)
Author:
Don-vip
Message:

see #8465 - switch core to Java 7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletingComboBox.java

    r6437 r7001  
    301301     * renders an AutoCompletionListItem by showing only the string value part
    302302     */
    303     public static class AutoCompleteListCellRenderer extends JLabel implements ListCellRenderer {
    304 
     303    public static class AutoCompleteListCellRenderer extends JLabel implements ListCellRenderer<AutoCompletionListItem> {
     304
     305        /**
     306         * Constructs a new {@code AutoCompleteListCellRenderer}.
     307         */
    305308        public AutoCompleteListCellRenderer() {
    306309            setOpaque(true);
     
    309312        @Override
    310313        public Component getListCellRendererComponent(
    311                 JList list,
    312                 Object value,
     314                JList<? extends AutoCompletionListItem> list,
     315                AutoCompletionListItem item,
    313316                int index,
    314317                boolean isSelected,
     
    323326            }
    324327
    325             AutoCompletionListItem item = (AutoCompletionListItem) value;
    326328            setText(item.getValue());
    327329            return this;
Note: See TracChangeset for help on using the changeset viewer.