Scarab commit: svn commit: r10840 - trunk/src/java/org/tigris/scarab/om/Attribute.java

Hussayn Dabbous <[email protected]>
Newsgroups gmane.comp.java.scarab.cvs
Message-ID <[email protected]>
Author: dabbous
Date: 2009-07-28 14:55:36-0700
New Revision: 10840

Modified:
   trunk/src/java/org/tigris/scarab/om/Attribute.java

Log:
code cleanup: Removed obsolete equals() method from Attribute (the super.equals() works perfectly)

Modified: trunk/src/java/org/tigris/scarab/om/Attribute.java
Url: http://scarab.tigris.org/source/browse/scarab/trunk/src/java/org/tigris/scarab/om/Attribute.java?view=diff&pathrev=10840&r1=10839&r2=10840
==============================================================================
--- trunk/src/java/org/tigris/scarab/om/Attribute.java	(original)
+++ trunk/src/java/org/tigris/scarab/om/Attribute.java	2009-07-28 14:55:36-0700
@@ -1096,19 +1096,5 @@
     	return TransitionManager.getAllTransitions(this);
     }
     
-    public boolean equals(Attribute other)
-    {
-        boolean result = super.equals(other);
-        
-        int oid = other.getAttributeId();
-        int tid = this.getAttributeId();
-        
-        if (result != (oid==tid))
-        {
-            int x=0; // very suspect...
-        }
-        
-        return result;
-    }
 
 }

------------------------------------------------------
http://scarab.tigris.org/ds/viewMessage.do?dsForumId=3577&dsMessageId=2376414
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.