From 0131cc6a4917ec703258059e910261c2ed76e7d1 Mon Sep 17 00:00:00 2001 From: Tuukka Lehtonen Date: Mon, 12 Mar 2018 22:15:14 +0200 Subject: [PATCH] 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 --- .../src/org/simantics/graph/representation/Extensions.java | 2 +- .../src/org/simantics/project/management/PlatformUtil.java | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) 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 = () -> { -- 2.43.2