diff options
author | James Dong <jdong@google.com> | 2012-02-27 16:41:22 -0800 |
---|---|---|
committer | James Dong <jdong@google.com> | 2012-02-27 18:00:12 -0800 |
commit | 060526f9856e52964eaf13df8db74f5fbdcb83b1 (patch) | |
tree | 830d8f468d530b01ac950b83484eb789959f0f67 | |
parent | fd400f5f483d76a38a28155a7328a953ed3ec36f (diff) | |
download | frameworks_base-060526f9856e52964eaf13df8db74f5fbdcb83b1.zip frameworks_base-060526f9856e52964eaf13df8db74f5fbdcb83b1.tar.gz frameworks_base-060526f9856e52964eaf13df8db74f5fbdcb83b1.tar.bz2 |
Deprecate default constructor for classes that should have been meant to be interfaces
o We should have not exposed these default constructors in the first place.
Change-Id: Ia8bcfe77e9730021ad8870ece67c6d0eed8146ad
-rw-r--r-- | api/current.txt | 10 | ||||
-rwxr-xr-x | drm/java/android/drm/DrmStore.java | 30 |
2 files changed, 35 insertions, 5 deletions
diff --git a/api/current.txt b/api/current.txt index fffa1fe..edb7159 100644 --- a/api/current.txt +++ b/api/current.txt @@ -7616,11 +7616,11 @@ package android.drm { } public class DrmStore { - ctor public DrmStore(); + ctor public deprecated DrmStore(); } public static class DrmStore.Action { - ctor public DrmStore.Action(); + ctor public deprecated DrmStore.Action(); field public static final int DEFAULT = 0; // 0x0 field public static final int DISPLAY = 7; // 0x7 field public static final int EXECUTE = 6; // 0x6 @@ -7641,7 +7641,7 @@ package android.drm { } public static class DrmStore.DrmObjectType { - ctor public DrmStore.DrmObjectType(); + ctor public deprecated DrmStore.DrmObjectType(); field public static final int CONTENT = 1; // 0x1 field public static final int RIGHTS_OBJECT = 2; // 0x2 field public static final int TRIGGER_OBJECT = 3; // 0x3 @@ -7649,7 +7649,7 @@ package android.drm { } public static class DrmStore.Playback { - ctor public DrmStore.Playback(); + ctor public deprecated DrmStore.Playback(); field public static final int PAUSE = 2; // 0x2 field public static final int RESUME = 3; // 0x3 field public static final int START = 0; // 0x0 @@ -7657,7 +7657,7 @@ package android.drm { } public static class DrmStore.RightsStatus { - ctor public DrmStore.RightsStatus(); + ctor public deprecated DrmStore.RightsStatus(); field public static final int RIGHTS_EXPIRED = 2; // 0x2 field public static final int RIGHTS_INVALID = 1; // 0x1 field public static final int RIGHTS_NOT_ACQUIRED = 3; // 0x3 diff --git a/drm/java/android/drm/DrmStore.java b/drm/java/android/drm/DrmStore.java index 2f004cf..3a77ea1 100755 --- a/drm/java/android/drm/DrmStore.java +++ b/drm/java/android/drm/DrmStore.java @@ -108,6 +108,12 @@ public class DrmStore { * A trigger information object type. */ public static final int TRIGGER_OBJECT = 0x03; + + /** + * @deprecated This class should have been an interface instead. + * The default constuctor should have not been exposed. + */ + public DrmObjectType() {} } /** @@ -143,6 +149,12 @@ public class DrmStore { } return isValid; } + + /** + * @deprecated This class should have been an interface instead. + * The default constuctor should have not been exposed. + */ + public Playback() {} } /** @@ -198,6 +210,12 @@ public class DrmStore { } return isValid; } + + /** + * @deprecated This class should have been an interface instead. + * The default constuctor should have not been exposed. + */ + public Action() {} } /** @@ -220,6 +238,18 @@ public class DrmStore { * The digital rights have not been acquired for the rights-protected content. */ public static final int RIGHTS_NOT_ACQUIRED = 0x03; + + /** + * @deprecated This class should have been an interface instead. + * The default constuctor should have not been exposed. + */ + public RightsStatus() {} } + + /** + * @deprecated This class should have been an interface instead. + * The default constuctor should have not been exposed. + */ + public DrmStore() {} } |