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:
parent
02e549bfaa
commit
8f523f3a10
1241 changed files with 97711 additions and 25284 deletions
|
@ -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)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue