/[classpath]/classpath/java/security/Identity.java
ViewVC logotype

Diff of /classpath/java/security/Identity.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8.2.2 by gnu_andrew, Tue Aug 2 20:12:24 2005 UTC revision 1.8.2.3 by gnu_andrew, Tue Sep 20 18:46:29 2005 UTC
# Line 297  public abstract class Identity implement Line 297  public abstract class Identity implement
297          if (identity == this)          if (identity == this)
298            return true;            return true;
299    
300          if ((((Identity) identity).getName() == this.name) &&          if ((((Identity) identity).getName().equals(this.name)) &&
301              (((Identity) identity).getScope() == this.scope))              (((Identity) identity).getScope().equals(this.scope)))
302            return true;            return true;
303    
304          return identityEquals((Identity) identity);          return identityEquals((Identity) identity);
# Line 319  public abstract class Identity implement Line 319  public abstract class Identity implement
319     */     */
320    protected boolean identityEquals(Identity identity)    protected boolean identityEquals(Identity identity)
321    {    {
322      return ((identity.getName() == this.name) &&      return ((identity.getName().equals(this.name)) &&
323              (identity.getPublicKey() == this.publicKey));              (identity.getPublicKey().equals(this.publicKey)));
324    }    }
325    
326    /**    /**

Legend:
Removed from v.1.8.2.2  
changed lines
  Added in v.1.8.2.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26