소스 검색

Apache HttpClientConnection: replace calls to deprecated LocalFile()

Change-Id: I79f422e004f386b3f2875de6997e5a0949fff566
tags/v3.4.2.201412180340-r
Matthias Sohn 9 년 전
부모
커밋
f9088d6dda
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3
    3
      org.eclipse.jgit.http.apache/src/org/eclipse/jgit/transport/http/apache/HttpClientConnection.java

+ 3
- 3
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);
}


Loading…
취소
저장