Add support for @pending annotation.

This behaves the same as @hide, but can be used to annotate API that are
only hidden pending API approval.

Change-Id: I4c0bf46c6d74ed45a8890ecdfd9b14ce234a5c18
This commit is contained in:
Xavier Ducrohet
2009-09-10 14:50:12 -07:00
parent 5ee390d856
commit 02e14df59f
2 changed files with 5 additions and 4 deletions

View File

@@ -979,10 +979,11 @@ public class DroidDoc
}
/**
* Returns true if the given element has an @hide annotation.
* Returns true if the given element has an @hide or @pending annotation.
*/
private static boolean hasHideAnnotation(Doc doc) {
return doc.getRawCommentText().indexOf("@hide") != -1;
String comment = doc.getRawCommentText();
return comment.indexOf("@hide") != -1 || comment.indexOf("@pending") != -1;
}
/**