diff options
| author | Anthony Green <green@redhat.com> | 2005-09-18 03:06:38 +0000 |
|---|---|---|
| committer | Anthony Green <green@redhat.com> | 2005-09-18 03:06:38 +0000 |
| commit | 3b40d51cea261df2b414ecfc3e9210d9e7769aa5 (patch) | |
| tree | 45f33a5ebc5792ad4bb466e8ed3ff54090a56942 /java/security | |
| parent | e00927e9840e75fbe7f90fa496bf398e3cc5a980 (diff) | |
| download | classpath-3b40d51cea261df2b414ecfc3e9210d9e7769aa5.tar.gz | |
* java/security/Security.java (getProviders): Pre-allocate the
target array for Collection.toArray call.
* gnu/java/security/PolicyFile.java (parse): Ditto.
* javax/swing/filechooser/FileSystemView.java: Ditto.
* javax/swing/JFileChooser.java (getChoosableFileFilters): Ditto.
Diffstat (limited to 'java/security')
| -rw-r--r-- | java/security/Security.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/java/security/Security.java b/java/security/Security.java index 54b97923e..fd51d0535 100644 --- a/java/security/Security.java +++ b/java/security/Security.java @@ -1,5 +1,5 @@ /* Security.java --- Java base security class implementation - Copyright (C) 1999, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. + Copyright (C) 1999, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -651,7 +651,7 @@ public final class Security if (result.isEmpty()) return null; - return (Provider[]) result.toArray(new Provider[0]); + return (Provider[]) result.toArray(new Provider[result.size()]); } private static void selectProviders(String svc, String algo, String attr, |
