Ticket #21420: 21420.patch
| File 21420.patch, 1.1 KB (added by , 5 years ago) |
|---|
-
src/org/openstreetmap/josm/gui/widgets/JosmComboBox.java
297 297 * 298 298 * @return the list or null 299 299 */ 300 @SuppressWarnings(" unchecked")301 public JList <E>getList() {300 @SuppressWarnings("rawtypes") 301 public JList getList() { 302 302 Object popup = getUI().getAccessibleChild(this, 0); 303 303 if (popup != null && popup instanceof javax.swing.plaf.basic.ComboPopup) { 304 304 return ((javax.swing.plaf.basic.ComboPopup) popup).getList(); … … 306 306 return null; 307 307 } 308 308 309 // get the popup list310 311 309 /** 312 310 * Draw the hint text for read-only comboboxes. 313 311 * <p> … … 387 385 388 386 try { 389 387 // First try an implementation-dependent method to get the exact number. 388 @SuppressWarnings("unchecked") 390 389 JList<E> jList = getList(); 391 390 392 391 // Calculate the free space available on screen
