From: lehtonen Date: Wed, 7 Sep 2016 20:54:40 +0000 (+0000) Subject: Fixed warnings. X-Git-Tag: v1.28.0~8 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=7a9d3a11ba78413383982d02cbcea71bb94ab2d3;p=simantics%2Fr.git Fixed warnings. refs #6653 git-svn-id: https://www.simantics.org/svn/simantics/r/trunk@33179 ac1ea38d-2e2b-0410-8846-a27921b304fc --- 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);