|
From: <lh...@us...> - 2010-03-01 14:33:14
|
Revision: 372
http://tinytim.svn.sourceforge.net/tinytim/?rev=372&view=rev
Author: lheuer
Date: 2010-03-01 14:33:04 +0000 (Mon, 01 Mar 2010)
Log Message:
-----------
Fixed LocatorImpl.equals() reported by Uta Schulze
Modified Paths:
--------------
tinytim/trunk/CHANGES.txt
tinytim/trunk/src/main/java/org/tinytim/core/value/LocatorImpl.java
Modified: tinytim/trunk/CHANGES.txt
===================================================================
--- tinytim/trunk/CHANGES.txt 2010-02-28 10:07:46 UTC (rev 371)
+++ tinytim/trunk/CHANGES.txt 2010-03-01 14:33:04 UTC (rev 372)
@@ -2,8 +2,10 @@
Changes Log
===========
-2.0.0 a6 (2010-02-xx)
+2.0.0 a6 (2010-03-xx)
---------------------
+* Fixed LocatorImpl (the impl. of "equals" was different
+ from the TMAPI 2.0 specs) reported by Uta Schulze
* Added OSGi headers to the MANIFEST
* Added support to convert XTM 1.0 class-instance relationships
to TMDM type-instance relationships
Modified: tinytim/trunk/src/main/java/org/tinytim/core/value/LocatorImpl.java
===================================================================
--- tinytim/trunk/src/main/java/org/tinytim/core/value/LocatorImpl.java 2010-02-28 10:07:46 UTC (rev 371)
+++ tinytim/trunk/src/main/java/org/tinytim/core/value/LocatorImpl.java 2010-03-01 14:33:04 UTC (rev 372)
@@ -151,7 +151,7 @@
*/
@Override
public boolean equals(Object obj) {
- return this == obj || (obj instanceof LocatorImpl && _reference.equals(((LocatorImpl) obj)._reference));
+ return this == obj || (obj instanceof Locator && _reference.equals(((Locator) obj).getReference()));
}
/* (non-Javadoc)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|