Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn2014-11-26 00:35:59 +0000
committerMatthias Sohn2014-11-26 00:35:59 +0000
commitf9088d6dda16c9b9fd2898dd12a6f704db963dcf (patch)
tree1bdbe624c391b6937f48190a167b1109d0629284 /org.eclipse.jgit.http.apache/src/org/eclipse
parent61b632ee5a915cb5e30676aab4349402bcd8196f (diff)
downloadjgit-f9088d6dda16c9b9fd2898dd12a6f704db963dcf.tar.gz
jgit-f9088d6dda16c9b9fd2898dd12a6f704db963dcf.tar.xz
jgit-f9088d6dda16c9b9fd2898dd12a6f704db963dcf.zip
Apache HttpClientConnection: replace calls to deprecated LocalFile()
Diffstat (limited to 'org.eclipse.jgit.http.apache/src/org/eclipse')
-rw-r--r--org.eclipse.jgit.http.apache/src/org/eclipse/jgit/transport/http/apache/HttpClientConnection.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.jgit.http.apache/src/org/eclipse/jgit/transport/http/apache/HttpClientConnection.java b/org.eclipse.jgit.http.apache/src/org/eclipse/jgit/transport/http/apache/HttpClientConnection.java
index b776119e23..d42d6f29ee 100644
--- a/org.eclipse.jgit.http.apache/src/org/eclipse/jgit/transport/http/apache/HttpClientConnection.java
+++ b/org.eclipse.jgit.http.apache/src/org/eclipse/jgit/transport/http/apache/HttpClientConnection.java
@@ -309,19 +309,19 @@ public class HttpClientConnection implements HttpConnection {
public void setFixedLengthStreamingMode(int contentLength) {
if (entity != null)
throw new IllegalArgumentException();
- entity = new TemporaryBufferEntity(new LocalFile());
+ entity = new TemporaryBufferEntity(new LocalFile(null));
entity.setContentLength(contentLength);
}
public OutputStream getOutputStream() throws IOException {
if (entity == null)
- entity = new TemporaryBufferEntity(new LocalFile());
+ entity = new TemporaryBufferEntity(new LocalFile(null));
return entity.getBuffer();
}
public void setChunkedStreamingMode(int chunklen) {
if (entity == null)
- entity = new TemporaryBufferEntity(new LocalFile());
+ entity = new TemporaryBufferEntity(new LocalFile(null));
entity.setChunked(true);
}

Back to the top