summaryrefslogtreecommitdiff
path: root/libjava/java
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2007-08-15 16:56:17 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2007-08-15 16:56:17 +0000
commitdf5612e72e37b22d4b52f3af6769f0b31d936b71 (patch)
treef2681e8610bc14b9e557d282ac70e29a4bab01d9 /libjava/java
parent61de5b7b39f4a9e7109404b038184caed0682757 (diff)
downloadgcc-df5612e72e37b22d4b52f3af6769f0b31d936b71.tar.gz
* java/lang/Class.java (internalGetFields): Use LinkedHashSet.
* classpath/lib/java/lang/Class.class: Rebuilt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127518 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java')
-rw-r--r--libjava/java/lang/Class.java4
1 files changed, 2 insertions, 2 deletions
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<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++)