Imported GNU Classpath 0.19 + gcj-import-20051115.
* sources.am: Regenerated.
* Makefile.in: Likewise.
* scripts/makemake.tcl: Use glob -nocomplain.
From-SVN: r107049
This commit is contained in:
@@ -297,8 +297,8 @@ public abstract class Identity implements Principal, Serializable
|
||||
if (identity == this)
|
||||
return true;
|
||||
|
||||
if ((((Identity) identity).getName() == this.name) &&
|
||||
(((Identity) identity).getScope() == this.scope))
|
||||
if ((((Identity) identity).getName().equals(this.name)) &&
|
||||
(((Identity) identity).getScope().equals(this.scope)))
|
||||
return true;
|
||||
|
||||
return identityEquals((Identity) identity);
|
||||
@@ -319,8 +319,8 @@ public abstract class Identity implements Principal, Serializable
|
||||
*/
|
||||
protected boolean identityEquals(Identity identity)
|
||||
{
|
||||
return ((identity.getName() == this.name) &&
|
||||
(identity.getPublicKey() == this.publicKey));
|
||||
return ((identity.getName().equals(this.name)) &&
|
||||
(identity.getPublicKey().equals(this.publicKey)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user