From b413c535af276684074dee54eb322168f52689a8 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 15 Aug 2007 16:56:17 +0000 Subject: [PATCH] Class.java (internalGetFields): Use LinkedHashSet. * java/lang/Class.java (internalGetFields): Use LinkedHashSet. * classpath/lib/java/lang/Class.class: Rebuilt. From-SVN: r127518 --- libjava/ChangeLog | 5 +++++ libjava/classpath/lib/java/lang/Class.class | Bin 15635 -> 15647 bytes libjava/java/lang/Class.java | 4 ++-- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 22d1b502d51..c97a0a0bac4 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2007-08-15 Tom Tromey + + * java/lang/Class.java (internalGetFields): Use LinkedHashSet. + * classpath/lib/java/lang/Class.class: Rebuilt. + 2007-08-15 Samuel Thibault * 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 index 78741b27412f8ded57e1661881a860dbee0844ad..ffe072f5337a6bcc931dad981f40f1c6cad76519 100644 GIT binary patch delta 53 ucmbPSHNR>DJGY>CR$^JAerZW&j=oQ3UUq8AWFhVCEV4904qigDgXcg diff --git a/libjava/java/lang/Class.java b/libjava/java/lang/Class.java index 67805172aa0..691f983b0b5 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 */ 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++)