jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1497704 - in /jena/trunk/jena-arq/src: main/java/com/hp/hpl/jena/sparql/engine/http/ main/java/com/hp/hpl/jena/sparql/modify/ main/java/org/apache/jena/riot/web/ test/java/com/hp/hpl/jena/sparql/engine/http/
Date Fri, 28 Jun 2013 09:44:06 GMT
Author: andy
Date: Fri Jun 28 09:44:06 2013
New Revision: 1497704

URL: http://svn.apache.org/r1497704
Log:
Remove warnings for unused imports

Modified:
    jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/engine/http/HttpQuery.java
    jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/engine/http/QueryExceptionHTTP.java
    jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/modify/UpdateProcessRemoteBase.java
    jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/web/HttpOp.java
    jena/trunk/jena-arq/src/test/java/com/hp/hpl/jena/sparql/engine/http/TestService.java

Modified: jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/engine/http/HttpQuery.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/engine/http/HttpQuery.java?rev=1497704&r1=1497703&r2=1497704&view=diff
==============================================================================
--- jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/engine/http/HttpQuery.java (original)
+++ jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/engine/http/HttpQuery.java Fri
Jun 28 09:44:06 2013
@@ -18,45 +18,30 @@
 
 package com.hp.hpl.jena.sparql.engine.http;
 
-import java.io.*;
-import java.net.HttpURLConnection;
-import java.net.MalformedURLException;
-import java.net.SocketTimeoutException;
-import java.net.URL;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-import java.util.regex.Pattern;
-import java.util.zip.DeflaterInputStream;
-import java.util.zip.GZIPInputStream;
-
-import org.apache.commons.codec.binary.Base64;
-import org.apache.http.client.ClientProtocolException;
-import org.apache.http.client.HttpClient;
-import org.apache.http.impl.client.AbstractHttpClient;
-import org.apache.http.impl.client.DecompressingHttpClient;
-import org.apache.http.impl.client.SystemDefaultHttpClient;
-import org.apache.http.params.CoreConnectionPNames;
-import org.apache.http.protocol.BasicHttpContext;
-import org.apache.http.protocol.HttpContext;
-import org.apache.jena.atlas.AtlasException;
-import org.apache.jena.atlas.lib.StrUtils;
-import org.apache.jena.atlas.web.HttpException;
-import org.apache.jena.atlas.web.TypedInputStream;
-import org.apache.jena.atlas.web.auth.HttpAuthenticator;
-import org.apache.jena.atlas.web.auth.SimpleAuthenticator;
-import org.apache.jena.riot.WebContent;
-import org.apache.jena.riot.web.HttpOp;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-import com.hp.hpl.jena.query.ARQ;
-import com.hp.hpl.jena.query.QueryExecException;
-import com.hp.hpl.jena.shared.JenaException;
-import com.hp.hpl.jena.sparql.ARQInternalErrorException;
-import com.hp.hpl.jena.sparql.util.Convert;
-import com.hp.hpl.jena.util.FileUtils;
+import java.io.InputStream ;
+import java.net.MalformedURLException ;
+import java.net.URL ;
+import java.util.regex.Pattern ;
+
+import org.apache.http.client.HttpClient ;
+import org.apache.http.impl.client.AbstractHttpClient ;
+import org.apache.http.impl.client.DecompressingHttpClient ;
+import org.apache.http.impl.client.SystemDefaultHttpClient ;
+import org.apache.http.params.CoreConnectionPNames ;
+import org.apache.http.protocol.BasicHttpContext ;
+import org.apache.http.protocol.HttpContext ;
+import org.apache.jena.atlas.web.HttpException ;
+import org.apache.jena.atlas.web.TypedInputStream ;
+import org.apache.jena.atlas.web.auth.HttpAuthenticator ;
+import org.apache.jena.atlas.web.auth.SimpleAuthenticator ;
+import org.apache.jena.riot.WebContent ;
+import org.apache.jena.riot.web.HttpOp ;
+import org.slf4j.Logger ;
+import org.slf4j.LoggerFactory ;
+
+import com.hp.hpl.jena.query.ARQ ;
+import com.hp.hpl.jena.query.QueryExecException ;
+import com.hp.hpl.jena.shared.JenaException ;
 
 /**
  * Create an execution object for performing a query on a model over HTTP. This
@@ -359,7 +344,7 @@ public class HttpQuery extends Params {
                 client = new DecompressingHttpClient(client);
             }
 
-            TypedInputStream stream = HttpOp.execHttpPostForm(serviceURL, contentTypeResult,
(Params) this, client, context,
+            TypedInputStream stream = HttpOp.execHttpPostForm(serviceURL, contentTypeResult,
this, client, context,
                     this.authenticator);
             if (stream == null)
                 throw new QueryExceptionHTTP(404);

Modified: jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/engine/http/QueryExceptionHTTP.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/engine/http/QueryExceptionHTTP.java?rev=1497704&r1=1497703&r2=1497704&view=diff
==============================================================================
--- jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/engine/http/QueryExceptionHTTP.java
(original)
+++ jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/engine/http/QueryExceptionHTTP.java
Fri Jun 28 09:44:06 2013
@@ -18,8 +18,6 @@
 
 package com.hp.hpl.jena.sparql.engine.http;
 
-import org.apache.jena.atlas.web.HttpException;
-
 import com.hp.hpl.jena.query.QueryException ;
 
 /** Exception class for all operations in the SPARQL client library.

Modified: jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/modify/UpdateProcessRemoteBase.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/modify/UpdateProcessRemoteBase.java?rev=1497704&r1=1497703&r2=1497704&view=diff
==============================================================================
--- jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/modify/UpdateProcessRemoteBase.java
(original)
+++ jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/modify/UpdateProcessRemoteBase.java
Fri Jun 28 09:44:06 2013
@@ -18,27 +18,26 @@
 
 package com.hp.hpl.jena.sparql.modify;
 
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Map;
-
-import org.apache.http.protocol.BasicHttpContext;
-import org.apache.http.protocol.HttpContext;
-import org.apache.jena.atlas.web.auth.HttpAuthenticator;
-import org.apache.jena.atlas.web.auth.SimpleAuthenticator;
-import org.apache.jena.riot.web.HttpOp;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-import com.hp.hpl.jena.sparql.engine.http.HttpParams;
-import com.hp.hpl.jena.sparql.engine.http.Params;
-import com.hp.hpl.jena.sparql.engine.http.QueryEngineHTTP;
-import com.hp.hpl.jena.sparql.engine.http.Service;
-import com.hp.hpl.jena.sparql.util.Context;
-import com.hp.hpl.jena.sparql.util.Symbol;
-import com.hp.hpl.jena.update.GraphStore;
-import com.hp.hpl.jena.update.UpdateProcessor;
-import com.hp.hpl.jena.update.UpdateRequest;
+import java.util.ArrayList ;
+import java.util.List ;
+import java.util.Map ;
+
+import org.apache.http.protocol.HttpContext ;
+import org.apache.jena.atlas.web.auth.HttpAuthenticator ;
+import org.apache.jena.atlas.web.auth.SimpleAuthenticator ;
+import org.apache.jena.riot.web.HttpOp ;
+import org.slf4j.Logger ;
+import org.slf4j.LoggerFactory ;
+
+import com.hp.hpl.jena.sparql.engine.http.HttpParams ;
+import com.hp.hpl.jena.sparql.engine.http.Params ;
+import com.hp.hpl.jena.sparql.engine.http.QueryEngineHTTP ;
+import com.hp.hpl.jena.sparql.engine.http.Service ;
+import com.hp.hpl.jena.sparql.util.Context ;
+import com.hp.hpl.jena.sparql.util.Symbol ;
+import com.hp.hpl.jena.update.GraphStore ;
+import com.hp.hpl.jena.update.UpdateProcessor ;
+import com.hp.hpl.jena.update.UpdateRequest ;
 
 /**
  * Abstract base class for update processors that perform remote updates over

Modified: jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/web/HttpOp.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/web/HttpOp.java?rev=1497704&r1=1497703&r2=1497704&view=diff
==============================================================================
--- jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/web/HttpOp.java (original)
+++ jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/web/HttpOp.java Fri Jun 28 09:44:06
2013
@@ -244,8 +244,7 @@ public class HttpOp {
         try {
             long id = counter.incrementAndGet();
             String requestURI = determineRequestURI(url);
-            @SuppressWarnings("unused")
-            String baseIRI = determineBaseIRI(requestURI);
+            //String baseIRI = determineBaseIRI(requestURI);
 
             HttpGet httpget = new HttpGet(requestURI);
             if (log.isDebugEnabled())
@@ -720,8 +719,7 @@ public class HttpOp {
         try {
             long id = counter.incrementAndGet();
             String requestURI = determineRequestURI(url);
-            @SuppressWarnings("unused")
-            String baseIRI = determineBaseIRI(requestURI);
+            //String baseIRI = determineBaseIRI(requestURI);
 
             HttpPost httppost = new HttpPost(requestURI);
             if (log.isDebugEnabled())

Modified: jena/trunk/jena-arq/src/test/java/com/hp/hpl/jena/sparql/engine/http/TestService.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/test/java/com/hp/hpl/jena/sparql/engine/http/TestService.java?rev=1497704&r1=1497703&r2=1497704&view=diff
==============================================================================
--- jena/trunk/jena-arq/src/test/java/com/hp/hpl/jena/sparql/engine/http/TestService.java
(original)
+++ jena/trunk/jena-arq/src/test/java/com/hp/hpl/jena/sparql/engine/http/TestService.java
Fri Jun 28 09:44:06 2013
@@ -18,14 +18,13 @@
 
 package com.hp.hpl.jena.sparql.engine.http;
 
-import java.net.SocketException;
+import java.net.SocketException ;
 import java.util.HashMap ;
 import java.util.Map ;
 
 import org.junit.AfterClass ;
 import org.junit.Assert ;
 import org.junit.BeforeClass ;
-import org.junit.Ignore;
 import org.junit.Test ;
 
 import com.hp.hpl.jena.graph.Node ;



Mime
View raw message