summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSidharth Singh2013-08-09 02:08:30 (EDT)
committerStephan Born2013-09-23 04:59:17 (EDT)
commit07e9adb6b52d839d039ca67d1926a1bf134644bb (patch)
tree6a0ef76ffc4cccf07decc0d058a27acac59431f8
parent741ba0e15430061742b64e364ed85b19a8345990 (diff)
downloadorg.eclipse.stardust.ui.web-07e9adb6b52d839d039ca67d1926a1bf134644bb.zip
org.eclipse.stardust.ui.web-07e9adb6b52d839d039ca67d1926a1bf134644bb.tar.gz
org.eclipse.stardust.ui.web-07e9adb6b52d839d039ca67d1926a1bf134644bb.tar.bz2
Jira-ID: CRNT-29794
Added debug stmt and added check before clearing modelDescriptions git-svn-id: https://svn.csa.sungard.com/repos/ipp2/product/trunk/stardust/ui.web@66581 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b Signed-off-by: Sidharth Singh <sidharth.singh@sungard.com>
-rw-r--r--views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/utils/ModelCache.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/utils/ModelCache.java b/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/utils/ModelCache.java
index aadf817..02b23bc 100644
--- a/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/utils/ModelCache.java
+++ b/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/utils/ModelCache.java
@@ -223,8 +223,12 @@ public class ModelCache implements Resetable, Serializable
}
}
- //4)clear old modelDescriptions and add newly fetched data
- modelDescriptions.clear();
+ // 4)clear old modelDescriptions and add newly fetched data
+ if (modelDescriptions.size() > 0)
+ {
+ modelDescriptions.clear();
+ trace.debug("ModelCache.reset ::Model descriptor cleaned ");
+ }
modelDescriptions.addAll(models);
if (CollectionUtils.isNotEmpty(updatedModels) || CollectionUtils.isNotEmpty(unusedModels))