summaryrefslogtreecommitdiff
path: root/libjava/java
diff options
context:
space:
mode:
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++)