Skip to content
Permalink
Browse files

fix: Java 11 differs from Java 8...

  • Loading branch information...
rhwood committed Jun 16, 2019
1 parent a27c0e4 commit de8dbc19e2d5baab51d70acb0db2d0ec92b11c4f
Showing with 2 additions and 2 deletions.
  1. +2 −2 java/src/jmri/swing/NamedBeanComboBox.java
@@ -374,7 +374,7 @@ public Component getListCellRendererComponent(JList<? extends B> list, B value,
*/
@Override
@SuppressWarnings("unchecked") // unchecked cast due to API constraints
public int selectionForKey(char key, ComboBoxModel<?> model) {
public int selectionForKey(char key, ComboBoxModel model) {
time = System.currentTimeMillis();

// Get the index of the currently selected item
@@ -428,7 +428,7 @@ public int selectionForKey(char key, ComboBoxModel<?> model) {
** Find the index of the item in the model that starts with the prefix.
*/
@SuppressWarnings("unchecked") // unchecked cast due to API constraints
private int getNextMatch(String prefix, int start, int end, ComboBoxModel<?> model) {
private int getNextMatch(String prefix, int start, int end, ComboBoxModel model) {
for (int i = start; i < end; i++) {
B item = (B) model.getElementAt(i);

0 comments on commit de8dbc1

Please sign in to comment.
You can’t perform that action at this time.