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

Fix deprecation level documentation

am: 75985bdd

Change-Id: I2147a3fca7e583678538d5c18ba721a882888412
parents 1a083dbc 75985bdd
No related branches found
No related tags found
No related merge requests found
......@@ -701,7 +701,7 @@ class DocAnalyzer(
if (level > 1) {
// TODO: *pre*pend instead!
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)
}
}
......
......@@ -1163,7 +1163,7 @@ class DocAnalyzerTest : DriverTest() {
<method name="&lt;init>()V"/>
<method name="addCallbackBuffer([B)V" since="8"/>
<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>
</api>
""",
......@@ -1186,7 +1186,7 @@ class DocAnalyzerTest : DriverTest() {
public Camera() { throw new RuntimeException("Stub!"); }
/**
* @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.
* @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