--- old/src/java.desktop/unix/classes/sun/awt/X11/XFileDialogPeer.java 2018-10-01 10:04:50.394026000 +0700 +++ new/src/java.desktop/unix/classes/sun/awt/X11/XFileDialogPeer.java 2018-10-01 10:04:49.930026000 +0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -467,7 +467,7 @@ } else { setFilterField(f); } - String l[]; + String[] l; if (f.equals("*")) { l = fe.list(); @@ -824,7 +824,7 @@ * See 6240074 for more information */ public void addItemsToPathChoice(String text){ - String dirList[] = getDirList(text); + String[] dirList = getDirList(text); for (int i = 0; i < dirList.length; i++) pathChoice.addItem(dirList[i]); }