Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrescobar2010-10-01 21:56:14 +0000
committerRyan D. Brooks2010-10-01 21:56:14 +0000
commit30d80067f1ee8345fbb1a687fc8c668aed158820 (patch)
treefe89f4945eeb2e14b6d1e1fd00c0fbc9bfd3c368
parent0c8bb68cd95b66f8fd933be2f9171567088b6cc6 (diff)
downloadorg.eclipse.osee-30d80067f1ee8345fbb1a687fc8c668aed158820.tar.gz
org.eclipse.osee-30d80067f1ee8345fbb1a687fc8c668aed158820.tar.xz
org.eclipse.osee-30d80067f1ee8345fbb1a687fc8c668aed158820.zip
refactor: Remove throw OseeCoreException from udpateCachedArtifact method
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/ArtifactCache.java5
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/cache/AbstractArtifactCache.java3
2 files changed, 3 insertions, 5 deletions
diff --git a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/ArtifactCache.java b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/ArtifactCache.java
index a99223ef5cd..21df74ccaf4 100644
--- a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/ArtifactCache.java
+++ b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/ArtifactCache.java
@@ -87,7 +87,7 @@ public final class ArtifactCache {
* This method is called by attributes and relations when their dirty state changes. This way, when an artifact is
* dirty we can hold onto a strong reference and when it is not dirty we can have a weak reference.
*/
- public static void updateCachedArtifact(int artId, int branchId) throws OseeCoreException {
+ public static void updateCachedArtifact(int artId, int branchId) {
ACTIVE_CACHE.updateReferenceType(artId, branchId);
}
@@ -112,8 +112,7 @@ public final class ArtifactCache {
public static void cacheByStaticId(String staticId, Artifact artifact) throws OseeCoreException {
if (artifact.isHistorical()) {
- throw new OseeArgumentException("historical artifact cannot be cached by staticId [%s]",
- staticId);
+ throw new OseeArgumentException("historical artifact cannot be cached by staticId [%s]", staticId);
}
ACTIVE_CACHE.cacheByStaticId(staticId, artifact);
}
diff --git a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/cache/AbstractArtifactCache.java b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/cache/AbstractArtifactCache.java
index f2301a21176..866610843a5 100644
--- a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/cache/AbstractArtifactCache.java
+++ b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/cache/AbstractArtifactCache.java
@@ -14,7 +14,6 @@ import java.lang.ref.WeakReference;
import java.util.Collection;
import java.util.HashSet;
import java.util.Map.Entry;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
import org.eclipse.osee.framework.jdk.core.type.CompositeKeyHashMap;
import org.eclipse.osee.framework.jdk.core.type.Pair;
import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
@@ -114,7 +113,7 @@ public abstract class AbstractArtifactCache {
}
@SuppressWarnings("unchecked")
- public void updateReferenceType(int artId, int branchId) throws OseeCoreException {
+ public void updateReferenceType(int artId, int branchId) {
Object obj = idCache.get(artId, branchId);
if (obj != null) {
if (obj instanceof Artifact) {

Back to the top