Skip to content

Commit 1da6797

Browse files
committed
Merge pull request androidannotations#1719 from WonderCsabo/1640_deprecateHttpsClient
Deprecate @HttpsClient
2 parents 2a38288 + 5d6baeb commit 1da6797

3 files changed

Lines changed: 5 additions & 0 deletions

File tree

  • AndroidAnnotations/androidannotations-core

AndroidAnnotations/androidannotations-core/androidannotations-api/src/main/java/org/androidannotations/annotations/HttpsClient.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,12 @@
8585
* </pre>
8686
*
8787
* </blockquote>
88+
*
89+
* @deprecated See https://developer.android.com/about/versions/marshmallow/android-6.0-changes.html#behavior-apache-http-client
8890
*/
8991
@Retention(RetentionPolicy.CLASS)
9092
@Target({ ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER })
93+
@Deprecated
9194
public @interface HttpsClient {
9295

9396
/**

AndroidAnnotations/androidannotations-core/androidannotations-test/src/main/java/org/androidannotations/test/SSLConnection.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
import android.app.Activity;
2323

24+
@SuppressWarnings("deprecation")
2425
@EActivity
2526
public class SSLConnection extends Activity {
2627

AndroidAnnotations/androidannotations-core/androidannotations/src/main/java/org/androidannotations/internal/core/handler/HttpsClientHandler.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
import com.helger.jcodemodel.JTryBlock;
4848
import com.helger.jcodemodel.JVar;
4949

50+
@SuppressWarnings("deprecation")
5051
public class HttpsClientHandler extends BaseAnnotationHandler<EComponentHolder>implements MethodInjectionHandler<EComponentHolder> {
5152

5253
private final InjectHelper<EComponentHolder> injectHelper;

0 commit comments

Comments
 (0)