Browse Source

Remove deprecated TransportHttp#httpOpen(String, URL)

Use TransportHttp#httpOpen(String, URL, AcceptEncoding) instead.

Change-Id: I4ad423175daa5499caad9cccb88076d371331569
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
stable-5.0
Matthias Sohn 7 years ago
parent
commit
39a1b4d325
  1. 15
      org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportHttp.java

15
org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportHttp.java

@ -795,21 +795,6 @@ public class TransportHttp extends HttpTransport implements WalkTransport,
}
}
/**
* Open an HTTP connection, setting the accept-encoding request header to gzip.
*
* @param method HTTP request method
* @param u url of the HTTP connection
* @return the HTTP connection
* @throws java.io.IOException
* @since 3.3
* @deprecated use {@link #httpOpen(String, URL, AcceptEncoding)} instead.
*/
@Deprecated
protected HttpConnection httpOpen(String method, URL u) throws IOException {
return httpOpen(method, u, AcceptEncoding.GZIP);
}
/**
* Open an HTTP connection.
*

Loading…
Cancel
Save