The Source for Java Technology Collaboration
User: Password:



Start New Message Delete Post a Reply

Article: 
 You Are What You Is: Defining Object Identity
Subject:  write the equals() differently
Date:  2006-07-27 08:35:17
From:  ahabra


In my equals() methods, I usually put this line at the beginning

if (this == obj) return true;

Would this not fix the problem you showed?

 Feed java.net RSS Feeds