Skip to content

Commit

Permalink
Ignore deprecatins in MockHttpClientConnectionManager, nothing we can…
Browse files Browse the repository at this point in the history
… do about them, methods need to be implemented
  • Loading branch information
aaime committed Jun 1, 2019
1 parent 9c10b25 commit 3be368c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@
import org.apache.http.message.BasicHeader;
import org.apache.http.message.BasicHeaderIterator;
import org.apache.http.message.BasicStatusLine;
import org.apache.http.params.HttpParams;
import org.apache.http.protocol.HttpContext;

/**
* Mock connection manager, to emulate remote connections and get mocked data from them.
*
* @author maurobartolomeoli@gmail.com
*/
@SuppressWarnings("deprecation")
public class MockHttpClientConnectionManager implements HttpClientConnectionManager {
static SimpleDateFormat dateFormat =
new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss z", Locale.US);
Expand Down Expand Up @@ -205,7 +205,7 @@ public Header getLastHeader(String header) {
}

@Override
public HttpParams getParams() {
public org.apache.http.params.HttpParams getParams() {
// TODO Auto-generated method stub
return null;
}
Expand Down Expand Up @@ -243,7 +243,7 @@ public void setHeader(String arg0, String arg1) {}
public void setHeaders(Header[] arg0) {}

@Override
public void setParams(HttpParams arg0) {}
public void setParams(org.apache.http.params.HttpParams arg0) {}

@Override
public HttpEntity getEntity() {
Expand Down

0 comments on commit 3be368c

Please sign in to comment.