You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@marmotta.apache.org by ja...@apache.org on 2014/01/08 12:03:41 UTC

[3/4] git commit: fixed some warnings

fixed some warnings


Project: http://git-wip-us.apache.org/repos/asf/marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/marmotta/commit/b4a418d8
Tree: http://git-wip-us.apache.org/repos/asf/marmotta/tree/b4a418d8
Diff: http://git-wip-us.apache.org/repos/asf/marmotta/diff/b4a418d8

Branch: refs/heads/develop
Commit: b4a418d89d651d3c1fdab12e6747722270dc5a4b
Parents: 433d632
Author: Jakob Frank <ja...@apache.org>
Authored: Wed Jan 8 11:56:28 2014 +0100
Committer: Jakob Frank <ja...@apache.org>
Committed: Wed Jan 8 12:02:32 2014 +0100

----------------------------------------------------------------------
 .../platform/sparql/services/sparql/SparqlServiceImpl.java      | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/marmotta/blob/b4a418d8/platform/marmotta-sparql/src/main/java/org/apache/marmotta/platform/sparql/services/sparql/SparqlServiceImpl.java
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/java/org/apache/marmotta/platform/sparql/services/sparql/SparqlServiceImpl.java b/platform/marmotta-sparql/src/main/java/org/apache/marmotta/platform/sparql/services/sparql/SparqlServiceImpl.java
index a2c0c94..ac5d5cd 100644
--- a/platform/marmotta-sparql/src/main/java/org/apache/marmotta/platform/sparql/services/sparql/SparqlServiceImpl.java
+++ b/platform/marmotta-sparql/src/main/java/org/apache/marmotta/platform/sparql/services/sparql/SparqlServiceImpl.java
@@ -110,7 +110,9 @@ public class SparqlServiceImpl implements SparqlService {
      * @deprecated beginning with Sesame 2.8, use {@link RDFFormat#getStandardURI()} or {@link QueryResultFormat#etStandardURI()}
      */
     @Deprecated
-    private static final Map<FileFormat, String> w3cFormatID = new HashMap<FileFormat, String>() {{
+    private static final Map<FileFormat, String> w3cFormatID = new HashMap<FileFormat, String>() {
+        private static final long serialVersionUID = 1L;
+        {
         put(RDFFormat.JSONLD, "http://www.w3.org/ns/formats/JSON-LD");
         put(RDFFormat.N3, "http://www.w3.org/ns/formats/N3");
         put(RDFFormat.NTRIPLES, "http://www.w3.org/ns/formats/N-Triples");
@@ -257,7 +259,6 @@ public class SparqlServiceImpl implements SparqlService {
     public void query(final QueryLanguage queryLanguage, final String query, final QueryResultWriter writer, final int timeoutInSeconds) throws MarmottaException, MalformedQueryException, QueryEvaluationException, TimeoutException {
         log.debug("executing SPARQL query:\n{}", query);
         Future<Boolean> future = executorService.submit(new Callable<Boolean>() {
-            @SuppressWarnings("deprecation")
             @Override
             public Boolean call() throws Exception {
                 long start = System.currentTimeMillis();