Imported GNU Classpath 0.19 + gcj-import-20051115.
* sources.am: Regenerated. * Makefile.in: Likewise. * scripts/makemake.tcl: Use glob -nocomplain. From-SVN: r107049
This commit is contained in:
parent
02e549bfaa
commit
8f523f3a10
1241 changed files with 97711 additions and 25284 deletions
|
@ -171,8 +171,12 @@ public class InputMap
|
|||
*/
|
||||
public KeyStroke[] keys()
|
||||
{
|
||||
KeyStroke[] array = new KeyStroke[size()];
|
||||
return (KeyStroke[]) inputMap.keySet().toArray(array);
|
||||
if (size() != 0)
|
||||
{
|
||||
KeyStroke[] array = new KeyStroke[size()];
|
||||
return (KeyStroke[]) inputMap.keySet().toArray(array);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -189,7 +193,9 @@ public class InputMap
|
|||
set.addAll(Arrays.asList(parent.allKeys()));
|
||||
|
||||
set.addAll(inputMap.keySet());
|
||||
KeyStroke[] array = new KeyStroke[size()];
|
||||
if (set.size() == 0)
|
||||
return null;
|
||||
KeyStroke[] array = new KeyStroke[set.size()];
|
||||
return (KeyStroke[]) set.toArray(array);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue