Ignore:
Timestamp:
2014-04-26T03:53:35+02:00 (12 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/PopupMenuLauncher.java

    r6070 r7001  
    7878    protected boolean checkSelection(Component component, Point p) {
    7979        if (component instanceof JList) {
    80             return checkListSelection((JList) component, p) > -1;
     80            return checkListSelection((JList<?>) component, p) > -1;
    8181        } else if (component instanceof JTable) {
    8282            return checkTableSelection((JTable) component, p) > -1;
     
    107107    }
    108108
    109     protected int checkListSelection(JList list, Point p) {
     109    protected int checkListSelection(JList<?> list, Point p) {
    110110        int idx = list.locationToIndex(p);
    111111        if (idx >= 0 && idx < list.getModel().getSize() && list.getSelectedIndices().length < 2 && !list.isSelectedIndex(idx)) {
Note: See TracChangeset for help on using the changeset viewer.