Entity lookup should return cached value and not value passed in

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31102 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2011-10-11 00:27:15 +00:00
parent 3d6b44bbdf
commit 949c873c7a

View File

@@ -459,7 +459,7 @@ public class EntityLookupCache<K extends Serializable, V extends Object, VK exte
// Check if the value is already mapped to a key
if (key != null && !key.equals(VALUE_NOT_FOUND))
{
return new Pair<K, V>(key, value);
return getByKey(key);
}
// Resolve it
Pair<K, V> entityPair = entityLookup.findByValue(value);