mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Got rid of warning from ehcache. Wrote equals and hashCode for MergeLinkImpl
and HistoryLinkImpl (oops). GetDirectoryListing now returns Map<String, AVMNodeDescriptor>. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3156 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -72,4 +72,32 @@ class MergeLinkImpl implements MergeLink, Serializable
|
||||
{
|
||||
return fTo;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param obj
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public boolean equals(Object obj)
|
||||
{
|
||||
if (this == obj)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof MergeLink))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
MergeLink o = (MergeLink)obj;
|
||||
return fFrom.equals(o.getMfrom()) && fTo.equals(o.getMto());
|
||||
}
|
||||
|
||||
/**
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int hashCode()
|
||||
{
|
||||
return fFrom.hashCode() + fTo.hashCode();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user