]> granicus.if.org Git - icu/commitdiff
ICU-8552 Special JavaDoc Status description for technology preview.
authorYoshito Umaoka <y.umaoka@gmail.com>
Tue, 10 May 2011 19:46:23 +0000 (19:46 +0000)
committerYoshito Umaoka <y.umaoka@gmail.com>
Tue, 10 May 2011 19:46:23 +0000 (19:46 +0000)
X-SVN-Rev: 30083

icu4j/tools/build/src/com/ibm/icu/dev/tool/docs/ICUTaglet.java

index 07c140195df999428e3cf7fab9790ae9e16ada26..aa2ff32d16b0a3c70298f46545f520eb82d1baa6 100644 (file)
@@ -1,6 +1,6 @@
 /**
 *******************************************************************************
-* Copyright (C) 2002-2010, International Business Machines Corporation and    *
+* Copyright (C) 2002-2011, International Business Machines Corporation and    *
 * others. All Rights Reserved.                                                *
 *******************************************************************************
 */
@@ -135,6 +135,10 @@ public abstract class ICUTaglet implements Taglet {
         }
 
         public String toString(Tag tag) {
+            if (tag.text().toLowerCase(Locale.US).indexOf("technology preview") >= 0) {
+                return STATUS + "<dd><em>Technology Preview</em>. <font color='red'>" +
+                    "This API is still in the early stages of development. Use at your own risk.</font></dd>";
+            }
             return STATUS + "<dd><em>Internal</em>. <font color='red'>" +
                 "This API is <em>ICU internal only</em>.</font></dd>";
         }