summaryrefslogtreecommitdiff
path: root/javax/security
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2005-07-26 16:27:07 +0000
committerTom Tromey <tromey@redhat.com>2005-07-26 16:27:07 +0000
commitb1d65d710377700857e8e2c0bd7987c4dc6ab921 (patch)
tree499c702e42736bbe54bbb94bdc4fe11e127a4533 /javax/security
parent72f954e2d2b9c04c5c3d79679450806745645400 (diff)
downloadclasspath-b1d65d710377700857e8e2c0bd7987c4dc6ab921.tar.gz
* javax/security/auth/x500/X500Principal.java (getName): Don't
compare oid to String. PR classpath/22988.
Diffstat (limited to 'javax/security')
-rw-r--r--javax/security/auth/x500/X500Principal.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/javax/security/auth/x500/X500Principal.java b/javax/security/auth/x500/X500Principal.java
index 31f870d26..dbe8b9c86 100644
--- a/javax/security/auth/x500/X500Principal.java
+++ b/javax/security/auth/x500/X500Principal.java
@@ -1,5 +1,5 @@
/* X500Principal.java -- X.500 principal.
- Copyright (C) 2003, 2004 Free Software Foundation, Inc.
+ Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -209,7 +209,7 @@ public final class X500Principal implements Principal, Serializable
str.append ("OU");
else if (oid.equals (DC) && rfc2253)
str.append ("DC");
- else if (oid.equals ("UID") && rfc2253)
+ else if (oid.equals (UID) && rfc2253)
str.append ("UID");
else
str.append (oid.toString());