Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

Commit 2fcfd54

Browse files
committed
Deprecate @HttpsClient
1 parent 081eac0 commit 2fcfd54

3 files changed

Lines changed: 6 additions & 1 deletion

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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@
4747
import com.helger.jcodemodel.JTryBlock;
4848
import com.helger.jcodemodel.JVar;
4949

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

5253
private final InjectHelper<EComponentHolder> injectHelper;
5354

0 commit comments

Comments
 (0)