diff options
author | Tom Tromey <tromey@redhat.com> | 2007-08-15 16:56:17 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2007-08-15 16:56:17 +0000 |
commit | b413c535af276684074dee54eb322168f52689a8 (patch) | |
tree | f2681e8610bc14b9e557d282ac70e29a4bab01d9 | |
parent | c675e8ad36728c9c93b7beaa81d92985433778ae (diff) | |
download | gcc-b413c535af276684074dee54eb322168f52689a8.zip gcc-b413c535af276684074dee54eb322168f52689a8.tar.gz gcc-b413c535af276684074dee54eb322168f52689a8.tar.bz2 |
Class.java (internalGetFields): Use LinkedHashSet.
* java/lang/Class.java (internalGetFields): Use LinkedHashSet.
* classpath/lib/java/lang/Class.class: Rebuilt.
From-SVN: r127518
-rw-r--r-- | libjava/ChangeLog | 5 | ||||
-rw-r--r-- | libjava/classpath/lib/java/lang/Class.class | bin | 15635 -> 15647 bytes | |||
-rw-r--r-- | libjava/java/lang/Class.java | 4 |
3 files changed, 7 insertions, 2 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 22d1b50..c97a0a0 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2007-08-15 Tom Tromey <tromey@redhat.com> + + * java/lang/Class.java (internalGetFields): Use LinkedHashSet. + * classpath/lib/java/lang/Class.class: Rebuilt. + 2007-08-15 Samuel Thibault <samuel.thibault@ens-lyon.org> * java/lang/natPosixProcess.cc (sigchld_handler) [!SA_SIGINFO]: Remove diff --git a/libjava/classpath/lib/java/lang/Class.class b/libjava/classpath/lib/java/lang/Class.class Binary files differindex 78741b2..ffe072f 100644 --- a/libjava/classpath/lib/java/lang/Class.class +++ b/libjava/classpath/lib/java/lang/Class.class diff --git a/libjava/java/lang/Class.java b/libjava/java/lang/Class.java index 6780517..691f983 100644 --- a/libjava/java/lang/Class.java +++ b/libjava/java/lang/Class.java @@ -56,7 +56,7 @@ import java.security.PrivilegedAction; import java.security.ProtectionDomain; import java.util.ArrayList; import java.util.Arrays; -import java.util.HashSet; +import java.util.LinkedHashSet; import java.util.HashMap; import java.util.Collection; import java.lang.reflect.AnnotatedElement; @@ -473,7 +473,7 @@ public final class Class<T> */ private Field[] internalGetFields() { - HashSet set = new HashSet(); + LinkedHashSet set = new LinkedHashSet(); set.addAll(Arrays.asList(getDeclaredFields(true))); Class[] interfaces = getInterfaces(); for (int i = 0; i < interfaces.length; i++) |