CdmBase cachedCdmEntityInSubGraph = cdmCacher.getFromCache(cdmEntityInSubGraph);
if(cachedCdmEntityInSubGraph != null) {
- if(!cachedCdmEntityInSubGraph.equals(cdmEntityInSubGraph)) {
+ if(cachedCdmEntityInSubGraph != cdmEntityInSubGraph) {
// exception : is the case where
// the field has been already initialised, cached and
// is not the same as the one in the cache, in which case we set the value