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

    r6070 r7001  
    1414public class ListPopupMenu extends JPopupMenu {
    1515
    16     private JList[] lists;
     16    private JList<?>[] lists;
    1717
    18     public ListPopupMenu(JList ... lists) {
     18    public ListPopupMenu(JList<?> ... lists) {
    1919        this.lists = lists;
    2020    }
    2121
    22     /* (non-Javadoc)
    23      * @see javax.swing.JPopupMenu#add(javax.swing.Action)
    24      */
    2522    @Override
    2623    public JMenuItem add(Action a) {
    2724        if (lists != null && a instanceof ListSelectionListener) {
    28             for (JList list : lists) {
     25            for (JList<?> list : lists) {
    2926                list.addListSelectionListener((ListSelectionListener) a);
    3027            }
Note: See TracChangeset for help on using the changeset viewer.