summaryrefslogtreecommitdiff
path: root/java/io/ObjectStreamClass.java
diff options
context:
space:
mode:
authorAndrew John Hughes <gnu_andrew@member.fsf.org>2005-02-04 09:44:43 +0000
committerAndrew John Hughes <gnu_andrew@member.fsf.org>2005-02-04 09:44:43 +0000
commitb721b6341331d70c0a3d128f6187617730864e10 (patch)
tree4399a91216f1a1fb059fda1c8292e65232db325f /java/io/ObjectStreamClass.java
parent09e1739c3f6893f9b615916faee706130ccfd95e (diff)
downloadclasspath-b721b6341331d70c0a3d128f6187617730864e10.tar.gz
2005-02-04 Andrew John Hughes <gnu_andrew@member.fsf.org>
Merge of HEAD --> generics-branch for 03/02/2005. Changelog: 2005-02-03 Robert Schuster <thebohemian@gmx.net> * gnu/java/nio/charset/ISO_8859_1.java, gnu/java/nio/charset/US_ASCII.java, gnu/java/nio/charset/UTF_16.java, gnu/java/nio/charset/UTF_16_LE.java, gnu/java/nio/charset/UTF_16_BE.java, gnu/java/nio/charset/UTF_8.java: Fixed canonical names and aliases according to "http://www.iana.org/assignments/character-sets", "http://java.sun.com/j2se/1.5.0/docs/guide/intl/encoding.doc.html" and "http://oss.software.ibm.com/cgi-bin/icu/convexp?s=ALL". * gnu/java/nio/charset/Provider.java: Made charset lookup case-insensitive which fixes bug #11740. 2005-02-03 Dalibor Topic <robilad@kaffe.org> * libraries/javalib/gnu/regexp/RE.java, libraries/javalib/java/io/ObjectInputStream.java, libraries/javalib/java/io/ObjectStreamClass.java, libraries/javalib/java/lang/SecurityManager.java, libraries/javalib/java/security/AllPermission.java, libraries/javalib/java/security/BasicPermission.java, libraries/javalib/java/security/Permissions.java, libraries/javalib/java/text/MessageFormat.java, libraries/javalib/java/util/AbstractList.java: Made 'inner' classes real public static inner classes, and made them final where possible, or removed them where unused. 2005-02-03 Michael Koch <konqueror@gmx.de> * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c Fix includes for cairo 0.3.0 snappshot.
Diffstat (limited to 'java/io/ObjectStreamClass.java')
-rw-r--r--java/io/ObjectStreamClass.java41
1 files changed, 20 insertions, 21 deletions
diff --git a/java/io/ObjectStreamClass.java b/java/io/ObjectStreamClass.java
index 1402dbfee..7cc842fa6 100644
--- a/java/io/ObjectStreamClass.java
+++ b/java/io/ObjectStreamClass.java
@@ -905,34 +905,33 @@ outer:
// but it will avoid showing up as a discrepancy when comparing SUIDs.
private static final long serialVersionUID = -6120832682080437368L;
-}
-
-// interfaces are compared only by name
-class InterfaceComparator implements Comparator
-{
- public int compare(Object o1, Object o2)
+ // interfaces are compared only by name
+ private static final class InterfaceComparator implements Comparator
{
- return ((Class) o1).getName().compareTo(((Class) o2).getName());
+ public int compare(Object o1, Object o2)
+ {
+ return ((Class) o1).getName().compareTo(((Class) o2).getName());
+ }
}
-}
-// Members (Methods and Constructors) are compared first by name,
-// conflicts are resolved by comparing type signatures
-class MemberComparator implements Comparator
-{
- public int compare(Object o1, Object o2)
+ // Members (Methods and Constructors) are compared first by name,
+ // conflicts are resolved by comparing type signatures
+ private static final class MemberComparator implements Comparator
{
- Member m1 = (Member) o1;
- Member m2 = (Member) o2;
+ public int compare(Object o1, Object o2)
+ {
+ Member m1 = (Member) o1;
+ Member m2 = (Member) o2;
- int comp = m1.getName().compareTo(m2.getName());
+ int comp = m1.getName().compareTo(m2.getName());
- if (comp == 0)
- return TypeSignature.getEncodingOfMember(m1).
- compareTo(TypeSignature.getEncodingOfMember(m2));
- else
- return comp;
+ if (comp == 0)
+ return TypeSignature.getEncodingOfMember(m1).
+ compareTo(TypeSignature.getEncodingOfMember(m2));
+ else
+ return comp;
+ }
}
}