Skip to content

Commit 78c8b5d

Browse files
committed
deprecate FormEntityFactory
1 parent 6a59eee commit 78c8b5d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

library/src/main/java/com/loopj/android/http/RequestParams.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
package com.loopj.android.http;
2020

21-
import com.loopj.android.http.entities.FormEntityFactory;
2221
import com.loopj.android.http.interfaces.RequestParamInterface;
2322
import com.loopj.android.http.interfaces.RequestParamsInterface;
2423
import com.loopj.android.http.interfaces.ResponseHandlerInterface;
@@ -169,7 +168,7 @@ public HttpEntity getEntity(ResponseHandlerInterface handlerInterface) {
169168
if (useJsonStreamer) {
170169

171170
} else if (!hasFiles() && !hasStreams()) {
172-
return FormEntityFactory.getFormEntity(this);
171+
return HttpEntityFactory.getFormEntity(this);
173172
}
174173
return null;
175174
}

library/src/main/java/com/loopj/android/http/entities/FormEntityFactory.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
import cz.msebera.android.httpclient.client.entity.UrlEncodedFormEntity;
1414
import cz.msebera.android.httpclient.message.BasicNameValuePair;
1515

16+
/**
17+
* @deprecated
18+
*/
1619
public class FormEntityFactory {
1720

1821
public static HttpEntity getFormEntity(RequestParamsInterface params) {

0 commit comments

Comments
 (0)