From 7a9d3a11ba78413383982d02cbcea71bb94ab2d3 Mon Sep 17 00:00:00 2001 From: lehtonen Date: Wed, 7 Sep 2016 20:54:40 +0000 Subject: [PATCH] Fixed warnings. refs #6653 git-svn-id: https://www.simantics.org/svn/simantics/r/trunk@33179 ac1ea38d-2e2b-0410-8846-a27921b304fc --- org.simantics.r.fileimport/build.properties | 2 +- org.simantics.r/src/org/simantics/r/RModelUtils.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/org.simantics.r.fileimport/build.properties b/org.simantics.r.fileimport/build.properties index 7d2a7a8..4ab6e26 100644 --- a/org.simantics.r.fileimport/build.properties +++ b/org.simantics.r.fileimport/build.properties @@ -1,5 +1,5 @@ output.. = bin/ bin.includes = META-INF/,\ .,\ - OSGI-INF/component.xml + OSGI-INF/ source.. = src/ diff --git a/org.simantics.r/src/org/simantics/r/RModelUtils.java b/org.simantics.r/src/org/simantics/r/RModelUtils.java index 0bf6ccf..1657944 100644 --- a/org.simantics.r/src/org/simantics/r/RModelUtils.java +++ b/org.simantics.r/src/org/simantics/r/RModelUtils.java @@ -4,7 +4,6 @@ import java.io.BufferedReader; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; -import java.util.Optional; import org.simantics.Simantics; import org.simantics.db.Resource; @@ -18,6 +17,7 @@ public class RModelUtils { private static Resource createModel(WriteGraph graph, Resource type, Resource target, String name, String sclMainContents) throws DatabaseException { Resource model = ModelingUtils.createModel(graph, type, target, name); + @SuppressWarnings("unused") Resource conf = graph.syncRequest(new Configuration(model)); ModelingUtils.addSCLMainToModel(graph, model, "SCLMain", sclMainContents); -- 2.47.1