diff options
author | James Dong <jdong@google.com> | 2012-02-27 18:13:37 -0800 |
---|---|---|
committer | James Dong <jdong@google.com> | 2012-02-27 18:25:31 -0800 |
commit | c4a9976aa15929a73ab7c0979d8b2e1e9eeadcc7 (patch) | |
tree | 7b080af1f029f3d515f0a398baaf80849d4b2755 | |
parent | fd400f5f483d76a38a28155a7328a953ed3ec36f (diff) |
Deprecated a mis-spelled method and replaced it with a new method
Change-Id: Id049a4effab120c3f837cde60a87efcd89a64ec6
-rw-r--r-- | api/current.txt | 3 | ||||
-rwxr-xr-x | drm/java/android/drm/DrmSupportInfo.java | 11 |
2 files changed, 13 insertions, 1 deletions
diff --git a/api/current.txt b/api/current.txt index fffa1fed124c..4720c7d806a8 100644 --- a/api/current.txt +++ b/api/current.txt @@ -7668,7 +7668,8 @@ package android.drm { ctor public DrmSupportInfo(); method public void addFileSuffix(java.lang.String); method public void addMimeType(java.lang.String); - method public java.lang.String getDescriprition(); + method public deprecated java.lang.String getDescriprition(); + method public java.lang.String getDescription(); method public java.util.Iterator<java.lang.String> getFileSuffixIterator(); method public java.util.Iterator<java.lang.String> getMimeTypeIterator(); method public void setDescription(java.lang.String); diff --git a/drm/java/android/drm/DrmSupportInfo.java b/drm/java/android/drm/DrmSupportInfo.java index 720c545282a9..6484fa71dbd2 100755 --- a/drm/java/android/drm/DrmSupportInfo.java +++ b/drm/java/android/drm/DrmSupportInfo.java @@ -85,12 +85,23 @@ public class DrmSupportInfo { * Retrieves the DRM plug-in (agent) description. * * @return The plug-in description. + * @deprecated The method name is mis-spelled, and it is replaced by + * {@link #getDescription()}. */ public String getDescriprition() { return mDescription; } /** + * Retrieves the DRM plug-in (agent) description. + * + * @return The plug-in description. + */ + public String getDescription() { + return mDescription; + } + + /** * Overridden hash code implementation. * * @return The hash code value. |