From f8e677c07ef7385f2771f099bb09faeae6c18f17 Mon Sep 17 00:00:00 2001 From: Jussi Koskela Date: Wed, 4 Sep 2019 08:40:57 +0300 Subject: [PATCH] Pass graphs as ReadGraph instead of Object for clarity gitlab #321 Change-Id: Id061b4d16f95a403a861e3cc06f1980c1a1dab60 --- .../src/org/simantics/scl/db/SCLFunctions.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bundles/org.simantics.scl.db/src/org/simantics/scl/db/SCLFunctions.java b/bundles/org.simantics.scl.db/src/org/simantics/scl/db/SCLFunctions.java index d8f83e05f..2fd74b21e 100644 --- a/bundles/org.simantics.scl.db/src/org/simantics/scl/db/SCLFunctions.java +++ b/bundles/org.simantics.scl.db/src/org/simantics/scl/db/SCLFunctions.java @@ -151,7 +151,7 @@ public class SCLFunctions { } } - public static T evaluateGraph(String module, String function, Object graph, Object ... args) throws DatabaseException { + public static T evaluateGraph(String module, String function, ReadGraph graph, Object ... args) throws DatabaseException { final SCLContext context = SCLContext.getCurrent(); SCLContext.push(context); Object oldGraph = context.put(GRAPH, graph); @@ -163,7 +163,7 @@ public class SCLFunctions { } } - public static void runWithGraph(Object graph, Runnable r) { + public static void runWithGraph(ReadGraph graph, Runnable r) { final SCLContext context = SCLContext.getCurrent(); SCLContext.push(context); Object oldGraph = context.put(GRAPH, graph); -- 2.47.1