fix failing test
[taxeditor.git] / eu.etaxonomy.taxeditor.cdmlib / src / main / java / eu / etaxonomy / taxeditor / remoting / cache / CacheLoader.java
index 7faec2c9ad514e24af5684aa2d54eeb4d02e7ba9..8b079fcfaa7467cca279c51dc2f6a42c1277ae71 100644 (file)
@@ -355,7 +355,7 @@ public class CacheLoader {
                     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