]> source.dussan.org Git - jgit.git/commitdiff
Apache HttpClientConnection: replace calls to deprecated LocalFile() 42/37042/1
authorMatthias Sohn <matthias.sohn@sap.com>
Wed, 26 Nov 2014 00:35:59 +0000 (01:35 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Wed, 26 Nov 2014 00:35:59 +0000 (01:35 +0100)
Change-Id: I79f422e004f386b3f2875de6997e5a0949fff566

org.eclipse.jgit.http.apache/src/org/eclipse/jgit/transport/http/apache/HttpClientConnection.java

index b776119e239d67b9b016c6248bcaa26669aef989..d42d6f29ee81b416c82e4eb087286f2609e8353a 100644 (file)
@@ -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);
        }