< prev index next >
src/java.desktop/windows/classes/sun/awt/windows/WDesktopProperties.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 1999, 2014, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 1999, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 87,98 ****
/*
* Returns String[] containing available property names
*/
private String [] getKeyNames() {
! Object keys[] = map.keySet().toArray();
! String sortedKeys[] = new String[keys.length];
for ( int nkey = 0; nkey < keys.length; nkey++ ) {
sortedKeys[nkey] = keys[nkey].toString();
}
Arrays.sort(sortedKeys);
--- 87,98 ----
/*
* Returns String[] containing available property names
*/
private String [] getKeyNames() {
! Object[] keys = map.keySet().toArray();
! String[] sortedKeys = new String[keys.length];
for ( int nkey = 0; nkey < keys.length; nkey++ ) {
sortedKeys[nkey] = keys[nkey].toString();
}
Arrays.sort(sortedKeys);
< prev index next >