Skip to content
Snippets Groups Projects
Commit 36f90370 authored by Tor Norbye's avatar Tor Norbye Committed by android-build-merger
Browse files

Fix deprecation level documentation am: 75985bdd am: b05456f4

am: 279ad4b9

Change-Id: I5e63af38784ce70c41eb4100401834a041feca85
parents 639c4430 279ad4b9
No related branches found
No related tags found
No related merge requests found
...@@ -701,7 +701,7 @@ class DocAnalyzer( ...@@ -701,7 +701,7 @@ class DocAnalyzer(
if (level > 1) { if (level > 1) {
// TODO: *pre*pend instead! // TODO: *pre*pend instead!
val description = val description =
"<p class=\"caution\"><strong>This class was deprecated in API level 21.</strong></p>" "<p class=\"caution\"><strong>This class was deprecated in API level $level.</strong></p>"
item.appendDocumentation(description, "@deprecated", append = false) item.appendDocumentation(description, "@deprecated", append = false)
} }
} }
......
...@@ -1163,7 +1163,7 @@ class DocAnalyzerTest : DriverTest() { ...@@ -1163,7 +1163,7 @@ class DocAnalyzerTest : DriverTest() {
<method name="&lt;init>()V"/> <method name="&lt;init>()V"/>
<method name="addCallbackBuffer([B)V" since="8"/> <method name="addCallbackBuffer([B)V" since="8"/>
<method name="getLogo()Landroid/graphics/drawable/Drawable;"/> <method name="getLogo()Landroid/graphics/drawable/Drawable;"/>
<field name="ACTION_NEW_VIDEO" since="14" deprecated="25"/> <field name="ACTION_NEW_VIDEO" since="14" deprecated="19"/>
</class> </class>
</api> </api>
""", """,
...@@ -1186,7 +1186,7 @@ class DocAnalyzerTest : DriverTest() { ...@@ -1186,7 +1186,7 @@ class DocAnalyzerTest : DriverTest() {
public Camera() { throw new RuntimeException("Stub!"); } public Camera() { throw new RuntimeException("Stub!"); }
/** /**
* @deprecated * @deprecated
* <p class="caution"><strong>This class was deprecated in API level 21.</strong></p> * <p class="caution"><strong>This class was deprecated in API level 19.</strong></p>
* Use something else. * Use something else.
* @since 14 * @since 14
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment