X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.acorn%2Fsrc%2Forg%2Fsimantics%2Facorn%2Finternal%2FClusterUpdateProcessorBase.java;h=cd8130d9c51357902b2cea7ef3a2f9be2117f2a8;hp=e0e733c1ef54bb4996c03ea42f1f4bd69cdaf61b;hb=d9a9d77c7024260e3e3b3a8558ddc84b2a8b99b3;hpb=0144ba232323a0e4f7ec8fe0681a150faafd7caf diff --git a/bundles/org.simantics.acorn/src/org/simantics/acorn/internal/ClusterUpdateProcessorBase.java b/bundles/org.simantics.acorn/src/org/simantics/acorn/internal/ClusterUpdateProcessorBase.java index e0e733c1e..cd8130d9c 100644 --- a/bundles/org.simantics.acorn/src/org/simantics/acorn/internal/ClusterUpdateProcessorBase.java +++ b/bundles/org.simantics.acorn/src/org/simantics/acorn/internal/ClusterUpdateProcessorBase.java @@ -5,6 +5,7 @@ import java.util.HashMap; import java.util.Map; import org.simantics.acorn.ClusterManager; +import org.simantics.acorn.exception.IllegalAcornStateException; import org.simantics.acorn.internal.ClusterStream.ClusterEnum; import org.simantics.acorn.internal.ClusterStream.Data; import org.simantics.acorn.internal.ClusterStream.StmEnum; @@ -26,7 +27,7 @@ abstract public class ClusterUpdateProcessorBase { final Map clusterKeyCache = new HashMap(); - public int getResourceKey(ClusterUID uid, int index) { + public int getResourceKey(ClusterUID uid, int index) throws IllegalAcornStateException { Integer match = clusterKeyCache.get(uid); if(match != null) return match+index; int key = manager.getResourceKeyWitoutMutex(uid, 0); @@ -192,7 +193,7 @@ abstract public class ClusterUpdateProcessorBase { int lows[] = new int[2]; int foreignRefs[] = new int[2]; - private void processStatement(int op, StmEnum stmEnum, ClusterEnum p, ClusterEnum o) { + private void processStatement(int op, StmEnum stmEnum, ClusterEnum p, ClusterEnum o) throws IllegalAcornStateException { int curPos = pos-1-24; @@ -307,7 +308,7 @@ abstract public class ClusterUpdateProcessorBase { } - public void process() { + public void process() throws IllegalAcornStateException { foreignPos = 0;