--- old/src/java.desktop/unix/classes/sun/awt/X11/XListPeer.java 2018-10-01 10:04:53.766026000 +0700 +++ new/src/java.desktop/unix/classes/sun/awt/X11/XListPeer.java 2018-10-01 10:04:53.226026000 +0700 @@ -76,7 +76,7 @@ // Holds the array of the indexes of the elements which is selected // This array should be kept sorted, low to high. - int selected[]; + int[] selected; int fontHeight; int fontAscent; int fontLeading; @@ -174,7 +174,7 @@ maxLength = maxLength(); // get the index containing all indexes to selected items - int sel[] = l.getSelectedIndexes(); + int[] sel = l.getSelectedIndexes(); selected = new int[sel.length]; // TODO: shouldn't this be arraycopy()? for (int i = 0 ; i < sel.length ; i ++) { @@ -1147,7 +1147,7 @@ items.removeElementAt(s); int j = posInSel(i); if (j != -1) { - int newsel[] = new int[selected.length - 1]; + int[] newsel = new int[selected.length - 1]; System.arraycopy(selected, 0, newsel, 0, j); System.arraycopy(selected, j + 1, newsel, j, selected.length - (j + 1)); selected = newsel; @@ -1246,7 +1246,7 @@ } } else { // insert "index" into the selection array - int newsel[] = new int[selected.length + 1]; + int[] newsel = new int[selected.length + 1]; int i = 0; while (i < selected.length && index > selected[i]) { newsel[i] = selected[i]; @@ -1284,7 +1284,7 @@ selected = new int[0]; } else { int i = posInSel(index); - int newsel[] = new int[selected.length - 1]; + int[] newsel = new int[selected.length - 1]; System.arraycopy(selected, 0, newsel, 0, i); System.arraycopy(selected, i+1, newsel, i, selected.length - (i+1)); selected = newsel;