From: Tuukka Lehtonen Date: Mon, 12 Mar 2018 20:15:14 +0000 (+0200) Subject: Fixed platform startup ontology update hash checking to work X-Git-Tag: v1.43.0~136^2~545 X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=commitdiff_plain;h=0131cc6a4917ec703258059e910261c2ed76e7d1 Fixed platform startup ontology update hash checking to work There was a typo in the Extensions class constant that identified cached hash value in the DataContainer metadata map compared to the maven graph builder plug-in. refs #7806 Change-Id: I21e99108adfa2b1e9307127ffd4be7127f852812 --- diff --git a/bundles/org.simantics.graph/src/org/simantics/graph/representation/Extensions.java b/bundles/org.simantics.graph/src/org/simantics/graph/representation/Extensions.java index 73a988798..e2f027924 100644 --- a/bundles/org.simantics.graph/src/org/simantics/graph/representation/Extensions.java +++ b/bundles/org.simantics.graph/src/org/simantics/graph/representation/Extensions.java @@ -15,7 +15,7 @@ public class Extensions { * {@link TransferableGraph1} instance in the metadata map of the * DataContainer containing the TG. */ - public final static String CACHED_HASHCODE = "cached.hashCode"; + public final static String CACHED_HASHCODE = "cached.hashcode"; final public static String CLUSTERING = "clustering"; final public static String CLUSTER_SETS = "clusterSets"; diff --git a/bundles/org.simantics.project/src/org/simantics/project/management/PlatformUtil.java b/bundles/org.simantics.project/src/org/simantics/project/management/PlatformUtil.java index fde150036..206480fa2 100644 --- a/bundles/org.simantics.project/src/org/simantics/project/management/PlatformUtil.java +++ b/bundles/org.simantics.project/src/org/simantics/project/management/PlatformUtil.java @@ -388,9 +388,7 @@ public class PlatformUtil { private static GraphBundleEx tryGetOnDemandGraph(Bundle bundle, URL url) throws IOException { try { Integer cachedHash = readCachedHash(url); - System.out.println("Read cached hashcode from " + bundle + ": " + cachedHash); if (cachedHash == null) -// if (true) return null; Supplier graphSource = () -> {