diff options
author | jmisinco | 2013-10-16 19:11:20 +0000 |
---|---|---|
committer | Gerrit Code Review @ Eclipse.org | 2013-10-17 15:38:50 +0000 |
commit | e45b38d4bab835666a40862d9fd2d05d7260d156 (patch) | |
tree | fe6426b207c735a92ab05aa8feb8a4f3b9376668 | |
parent | e0194e6bda257bc995f9e7b3be2b994c6f82b62d (diff) | |
download | org.eclipse.osee-e45b38d4bab835666a40862d9fd2d05d7260d156.tar.gz org.eclipse.osee-e45b38d4bab835666a40862d9fd2d05d7260d156.tar.xz org.eclipse.osee-e45b38d4bab835666a40862d9fd2d05d7260d156.zip |
bug: Set wasLoaded flag to false on error
Change-Id: I9fc8627d0155fb94a73d37744f255cb151135953
-rw-r--r-- | plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/cache/AbstractOseeCache.java | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/cache/AbstractOseeCache.java b/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/cache/AbstractOseeCache.java index 8fa78cfa4b5..85ccbd66aa3 100644 --- a/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/cache/AbstractOseeCache.java +++ b/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/cache/AbstractOseeCache.java @@ -47,13 +47,11 @@ public abstract class AbstractOseeCache<K, T extends AbstractOseeType<K>> implem private final boolean uniqueName; private final AtomicBoolean wasLoaded; private long lastLoaded; - private boolean ignoreEnsurePopulateException; protected AbstractOseeCache(OseeCacheEnum cacheId, IOseeDataAccessor<K, T> dataAccessor, boolean uniqueName) { this.lastLoaded = 0; this.cacheId = cacheId; this.wasLoaded = new AtomicBoolean(false); - this.ignoreEnsurePopulateException = false; this.dataAccessor = dataAccessor; this.uniqueName = uniqueName; } @@ -75,14 +73,6 @@ public abstract class AbstractOseeCache<K, T extends AbstractOseeType<K>> implem // for subclass overriding } - public void setIgnoreEnsurePopulateException(boolean isIgnored) { - this.ignoreEnsurePopulateException = isIgnored; - } - - public boolean isEnsurePopulateExceptionIgnored() { - return ignoreEnsurePopulateException; - } - @Override public OseeCacheEnum getCacheId() { return cacheId; @@ -269,9 +259,8 @@ public abstract class AbstractOseeCache<K, T extends AbstractOseeType<K>> implem try { reloadCache(); } catch (OseeCoreException ex) { - if (!isEnsurePopulateExceptionIgnored()) { - throw ex; - } + wasLoaded.set(false); + throw ex; } } } |