Ticket #21420: 21420.patch

File 21420.patch, 1.1 KB (added by marcello@…, 5 years ago)

Patch

  • src/org/openstreetmap/josm/gui/widgets/JosmComboBox.java

     
    297297     *
    298298     * @return the list or null
    299299     */
    300     @SuppressWarnings("unchecked")
    301     public JList<E> getList() {
     300    @SuppressWarnings("rawtypes")
     301    public JList getList() {
    302302        Object popup = getUI().getAccessibleChild(this, 0);
    303303        if (popup != null && popup instanceof javax.swing.plaf.basic.ComboPopup) {
    304304            return ((javax.swing.plaf.basic.ComboPopup) popup).getList();
     
    306306        return null;
    307307    }
    308308
    309     // get the popup list
    310 
    311309    /**
    312310     * Draw the hint text for read-only comboboxes.
    313311     * <p>
     
    387385
    388386        try {
    389387            // First try an implementation-dependent method to get the exact number.
     388            @SuppressWarnings("unchecked")
    390389            JList<E> jList = getList();
    391390
    392391            // Calculate the free space available on screen