ICU-2103 make checktags more lenient about deprecation

X-SVN-Rev: 10424
This commit is contained in:
Doug Felt 2002-12-02 23:31:31 +00:00
parent d44475ada0
commit 7e6a0d5c59

View File

@ -180,7 +180,7 @@ public class CheckTags {
static final String[] tagKinds = {
"@internal", "@draft", "@stable", "@since", "@deprecated", "@author", "@see", "@version",
"@param", "@return", "@throws"
"@param", "@return", "@throws, @obsolete"
};
static final int UNKNOWN = -1;
@ -195,6 +195,7 @@ public class CheckTags {
static final int PARAM = 8;
static final int RETURN = 9;
static final int THROWS = 10;
static final int OBSOLETE = 11;
static int tagKindIndex(String kind) {
for (int i = 0; i < tagKinds.length; ++i) {
@ -291,6 +292,8 @@ public class CheckTags {
break;
case DRAFT:
case DEPRECATED:
case OBSOLETE:
if (tag.text().indexOf("ICU") != 0) {
tagErr(tag);
}
@ -311,16 +314,6 @@ public class CheckTags {
tagErr(tag);
break;
case DEPRECATED:
{
String text = tag.text();
if (text.indexOf("ICU") != 0 || text.indexOf("be removed") == -1) {
tagErr(tag);
}
foundRequiredTag = true;
}
break;
case AUTHOR:
case SEE:
case PARAM: