]> granicus.if.org Git - icu/commitdiff
ICU-10602 Added @Deprecated annotation to @deprecated APIs. Corrected API status...
authorYoshito Umaoka <y.umaoka@gmail.com>
Thu, 27 Feb 2014 20:18:05 +0000 (20:18 +0000)
committerYoshito Umaoka <y.umaoka@gmail.com>
Thu, 27 Feb 2014 20:18:05 +0000 (20:18 +0000)
X-SVN-Rev: 35254

84 files changed:
icu4j/main/classes/charset/src/com/ibm/icu/charset/CharsetDecoderICU.java
icu4j/main/classes/charset/src/com/ibm/icu/charset/CharsetICU.java
icu4j/main/classes/charset/src/com/ibm/icu/charset/CharsetProviderICU.java
icu4j/main/classes/collate/src/com/ibm/icu/text/AlphabeticIndex.java
icu4j/main/classes/collate/src/com/ibm/icu/text/CollationElementIterator.java
icu4j/main/classes/collate/src/com/ibm/icu/text/Collator.java
icu4j/main/classes/collate/src/com/ibm/icu/text/RbnfScannerProviderImpl.java
icu4j/main/classes/collate/src/com/ibm/icu/text/RuleBasedCollator.java
icu4j/main/classes/core/src/com/ibm/icu/impl/ICUResourceBundle.java
icu4j/main/classes/core/src/com/ibm/icu/impl/OlsonTimeZone.java
icu4j/main/classes/core/src/com/ibm/icu/lang/CharSequences.java
icu4j/main/classes/core/src/com/ibm/icu/lang/UCharacter.java
icu4j/main/classes/core/src/com/ibm/icu/lang/UProperty.java
icu4j/main/classes/core/src/com/ibm/icu/lang/UScript.java
icu4j/main/classes/core/src/com/ibm/icu/lang/UScriptRun.java
icu4j/main/classes/core/src/com/ibm/icu/text/BreakIterator.java
icu4j/main/classes/core/src/com/ibm/icu/text/CanonicalIterator.java
icu4j/main/classes/core/src/com/ibm/icu/text/CharsetDetector.java
icu4j/main/classes/core/src/com/ibm/icu/text/ChineseDateFormat.java
icu4j/main/classes/core/src/com/ibm/icu/text/ChineseDateFormatSymbols.java
icu4j/main/classes/core/src/com/ibm/icu/text/CompactDecimalFormat.java
icu4j/main/classes/core/src/com/ibm/icu/text/ComposedCharIter.java
icu4j/main/classes/core/src/com/ibm/icu/text/CurrencyDisplayNames.java
icu4j/main/classes/core/src/com/ibm/icu/text/CurrencyMetaInfo.java
icu4j/main/classes/core/src/com/ibm/icu/text/CurrencyPluralInfo.java
icu4j/main/classes/core/src/com/ibm/icu/text/DateFormat.java
icu4j/main/classes/core/src/com/ibm/icu/text/DateFormatSymbols.java
icu4j/main/classes/core/src/com/ibm/icu/text/DateIntervalFormat.java
icu4j/main/classes/core/src/com/ibm/icu/text/DateIntervalInfo.java
icu4j/main/classes/core/src/com/ibm/icu/text/DateTimePatternGenerator.java
icu4j/main/classes/core/src/com/ibm/icu/text/DecimalFormat.java
icu4j/main/classes/core/src/com/ibm/icu/text/DecimalFormatSymbols.java
icu4j/main/classes/core/src/com/ibm/icu/text/DurationFormat.java
icu4j/main/classes/core/src/com/ibm/icu/text/IDNA.java
icu4j/main/classes/core/src/com/ibm/icu/text/IdentifierInfo.java
icu4j/main/classes/core/src/com/ibm/icu/text/ListFormatter.java
icu4j/main/classes/core/src/com/ibm/icu/text/LocaleDisplayNames.java
icu4j/main/classes/core/src/com/ibm/icu/text/Normalizer.java
icu4j/main/classes/core/src/com/ibm/icu/text/Normalizer2.java
icu4j/main/classes/core/src/com/ibm/icu/text/PluralFormat.java
icu4j/main/classes/core/src/com/ibm/icu/text/PluralRules.java
icu4j/main/classes/core/src/com/ibm/icu/text/PluralSamples.java
icu4j/main/classes/core/src/com/ibm/icu/text/RuleBasedBreakIterator.java
icu4j/main/classes/core/src/com/ibm/icu/text/RuleBasedNumberFormat.java
icu4j/main/classes/core/src/com/ibm/icu/text/SimpleDateFormat.java
icu4j/main/classes/core/src/com/ibm/icu/text/SpoofChecker.java
icu4j/main/classes/core/src/com/ibm/icu/text/StringCharacterIterator.java
icu4j/main/classes/core/src/com/ibm/icu/text/StringPrepParseException.java
icu4j/main/classes/core/src/com/ibm/icu/text/TimeUnitFormat.java
icu4j/main/classes/core/src/com/ibm/icu/text/UFieldPosition.java
icu4j/main/classes/core/src/com/ibm/icu/text/UnicodeFilter.java
icu4j/main/classes/core/src/com/ibm/icu/text/UnicodeSet.java
icu4j/main/classes/core/src/com/ibm/icu/text/UnicodeSetIterator.java
icu4j/main/classes/core/src/com/ibm/icu/util/BasicTimeZone.java
icu4j/main/classes/core/src/com/ibm/icu/util/BytesTrieBuilder.java
icu4j/main/classes/core/src/com/ibm/icu/util/Calendar.java
icu4j/main/classes/core/src/com/ibm/icu/util/CharsTrieBuilder.java
icu4j/main/classes/core/src/com/ibm/icu/util/ChineseCalendar.java
icu4j/main/classes/core/src/com/ibm/icu/util/CompactByteArray.java
icu4j/main/classes/core/src/com/ibm/icu/util/CompactCharArray.java
icu4j/main/classes/core/src/com/ibm/icu/util/CopticCalendar.java
icu4j/main/classes/core/src/com/ibm/icu/util/Currency.java
icu4j/main/classes/core/src/com/ibm/icu/util/DangiCalendar.java
icu4j/main/classes/core/src/com/ibm/icu/util/EthiopicCalendar.java
icu4j/main/classes/core/src/com/ibm/icu/util/GenderInfo.java
icu4j/main/classes/core/src/com/ibm/icu/util/HebrewCalendar.java
icu4j/main/classes/core/src/com/ibm/icu/util/JapaneseCalendar.java
icu4j/main/classes/core/src/com/ibm/icu/util/LocaleData.java
icu4j/main/classes/core/src/com/ibm/icu/util/LocaleMatcher.java
icu4j/main/classes/core/src/com/ibm/icu/util/MeasureUnit.java
icu4j/main/classes/core/src/com/ibm/icu/util/OverlayBundle.java
icu4j/main/classes/core/src/com/ibm/icu/util/PersianCalendar.java
icu4j/main/classes/core/src/com/ibm/icu/util/RuleBasedTimeZone.java
icu4j/main/classes/core/src/com/ibm/icu/util/SimpleTimeZone.java
icu4j/main/classes/core/src/com/ibm/icu/util/StringTokenizer.java
icu4j/main/classes/core/src/com/ibm/icu/util/StringTrieBuilder.java
icu4j/main/classes/core/src/com/ibm/icu/util/TimeZone.java
icu4j/main/classes/core/src/com/ibm/icu/util/ULocale.java
icu4j/main/classes/core/src/com/ibm/icu/util/UResourceBundle.java
icu4j/main/classes/core/src/com/ibm/icu/util/UniversalTimeScale.java
icu4j/main/classes/core/src/com/ibm/icu/util/VTimeZone.java
icu4j/main/classes/core/src/com/ibm/icu/util/VersionInfo.java
icu4j/main/classes/translit/src/com/ibm/icu/text/RuleBasedTransliterator.java
icu4j/main/classes/translit/src/com/ibm/icu/text/Transliterator.java

index c87615e8726904fe47c97e7ab9b6dd41ea37cf22..7fe5728c72088106a0a2a1c95d9b0b3f3858e19b 100644 (file)
@@ -1,6 +1,6 @@
 /**
 *******************************************************************************
-* Copyright (C) 2006-2012, International Business Machines Corporation and    *
+* Copyright (C) 2006-2014, International Business Machines Corporation and    *
 * others. All Rights Reserved.                                                *
 *******************************************************************************
 *
@@ -41,6 +41,7 @@ public abstract class CharsetDecoderICU extends CharsetDecoder{
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected static final int EXT_MAX_BYTES = 0x1f;
 
     /* store previous UChars/chars to continue partial matches */
index d0c0e97e64fd23292250ce2c052b951f4c350ec0..55c497a750e20d90a1e9c7926624ed3fdc8381d4 100644 (file)
@@ -1,6 +1,6 @@
 /**
 *******************************************************************************
-* Copyright (C) 2006-2012, International Business Machines Corporation and    *
+* Copyright (C) 2006-2014, International Business Machines Corporation and    *
 * others. All Rights Reserved.                                                *
 *******************************************************************************
 *
@@ -70,8 +70,9 @@ public abstract class CharsetICU extends Charset{
        * @internal
        * @deprecated This API is ICU internal only.
        */
+      @Deprecated
       public static final int ROUNDTRIP_AND_FALLBACK_SET =1;
-      
+
     //} UConverterUnicodeSet;
      
     /**
index b8e76f130ef990df391d02dedfc1f80114dd88e8..ad4134c849f6dbe5d9ae35dccc878bad87a453b8 100644 (file)
@@ -1,6 +1,6 @@
 /**
 *******************************************************************************
-* Copyright (C) 2006-2013, International Business Machines Corporation and    *
+* Copyright (C) 2006-2014, International Business Machines Corporation and    *
 * others. All Rights Reserved.                                                *
 *******************************************************************************
 *
@@ -105,6 +105,7 @@ public final class CharsetProviderICU extends CharsetProvider{
      * @internal
      * @deprecated This API is ICU internal only.
      */
+     @Deprecated
      public static final String getICUCanonicalName(String enc)
                                 throws UnsupportedCharsetException{
         String canonicalName = null;
@@ -164,6 +165,7 @@ public final class CharsetProviderICU extends CharsetProvider{
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static String getJavaCanonicalName(String charsetName){
         /*
         If a charset listed in the IANA Charset Registry is supported by an implementation 
@@ -255,6 +257,7 @@ public final class CharsetProviderICU extends CharsetProvider{
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     private static final String[] getAliases(String encName)throws IOException{
         String[] ret = null;
         int aliasNum = 0;
@@ -312,6 +315,7 @@ public final class CharsetProviderICU extends CharsetProvider{
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
      public static final String[] getAvailableNames(){
         CharsetProviderICU provider = new CharsetProviderICU();
         HashMap<Charset, String> map = new HashMap<Charset, String>();
@@ -325,6 +329,7 @@ public final class CharsetProviderICU extends CharsetProvider{
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
      public static final String[] getAllNames(){
         int num = UConverterAlias.countAvailable();
         String[] names = new String[num];
index 21667e859effd313c5a1776d3ec14548e3a63783..5d40e184105cd15d127ce0720abe3a27a34e50d1 100644 (file)
@@ -1331,6 +1331,7 @@ public final class AlphabeticIndex<V> implements Iterable<Bucket<V>> {
      * @internal
      * @deprecated This API is ICU internal, only for testing.
      */
+    @Deprecated
     public static Collection<String> getFirstCharactersInScripts() {
         return HACK_FIRST_CHARS_IN_SCRIPTS;
     }
index 44da827104c0f5c4b3ad82881dfee54df5f0d1b5..de7d918e31a5f31a73679f3fb03b2ae241cb5197 100644 (file)
@@ -1,6 +1,6 @@
 /**
 *******************************************************************************
-* Copyright (C) 1996-2013, International Business Machines Corporation and    *
+* Copyright (C) 1996-2014, International Business Machines Corporation and    *
 * others. All Rights Reserved.                                                *
 *******************************************************************************
 *
@@ -616,6 +616,7 @@ public final class CollationElementIterator
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public int hashCode() {
         assert false : "hashCode not designed";
         return 42;
index bb7d6fb40d450532589f6e095cc6609198af134f..c4f88199a4c0919886b2588d23be4d1fa42af47d 100644 (file)
@@ -1,6 +1,6 @@
 /**
 *******************************************************************************
-* Copyright (C) 1996-2012, International Business Machines Corporation and    *
+* Copyright (C) 1996-2014, International Business Machines Corporation and    *
 * others. All Rights Reserved.                                                *
 *******************************************************************************
 */
@@ -341,6 +341,7 @@ public abstract class Collator implements Comparator<Object>, Freezable<Collator
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public Collator setStrength2(int newStrength)
     {
         setStrength(newStrength);
index f98d47c279973c2ec79127ad24bc34e52c2aad63..43750edf57bc392fbfe92642c262b45ccdec1a3f 100644 (file)
@@ -19,6 +19,7 @@ import com.ibm.icu.util.ULocale;
  * @internal
  * @deprecated This API is ICU internal only.
  */
+@Deprecated
 public class RbnfScannerProviderImpl implements RbnfLenientScannerProvider {
     private static final boolean DEBUG = ICUDebug.enabled("rbnf");
     private Map<String, RbnfLenientScanner> cache;
@@ -27,6 +28,7 @@ public class RbnfScannerProviderImpl implements RbnfLenientScannerProvider {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public RbnfScannerProviderImpl() {
         cache = new HashMap<String, RbnfLenientScanner>();
     }
@@ -62,6 +64,7 @@ public class RbnfScannerProviderImpl implements RbnfLenientScannerProvider {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public RbnfLenientScanner get(ULocale locale, String extras) {
         RbnfLenientScanner result = null;
         String key = locale.toString() + "/" + extras;
@@ -82,6 +85,7 @@ public class RbnfScannerProviderImpl implements RbnfLenientScannerProvider {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected RbnfLenientScanner createScanner(ULocale locale, String extras) {
         RuleBasedCollator collator = null;
         try {
index 073d2b1e1195c2d9eabd90315e64ec15ba8eab88..4c69e0ebe551e9147a98aca7d8f195e840a63ce4 100644 (file)
@@ -1,6 +1,6 @@
 /**
  *******************************************************************************
- * Copyright (C) 1996-2013, International Business Machines Corporation and
+ * Copyright (C) 1996-2014, International Business Machines Corporation and
  * others. All Rights Reserved.
  *******************************************************************************
  */
@@ -339,6 +339,7 @@ public final class RuleBasedCollator extends Collator {
      * @see #isHiraganaQuaternary
      * @deprecated ICU 50 Implementation detail, cannot be set via API, might be removed from implementation.
      */
+    @Deprecated
     public void setHiraganaQuaternary(boolean flag) {
         if (isFrozen()) {
             throw new UnsupportedOperationException("Attempt to modify frozen object");
@@ -358,6 +359,7 @@ public final class RuleBasedCollator extends Collator {
      * @see #isHiraganaQuaternary
      * @deprecated ICU 50 Implementation detail, cannot be set via API, might be removed from implementation.
      */
+    @Deprecated
     public void setHiraganaQuaternaryDefault() {
         if (isFrozen()) {
             throw new UnsupportedOperationException("Attempt to modify frozen object");
@@ -1209,6 +1211,7 @@ public final class RuleBasedCollator extends Collator {
      * @see #setHiraganaQuaternary(boolean)
      * @deprecated ICU 50 Implementation detail, cannot be set via API, might be removed from implementation.
      */
+    @Deprecated
     public boolean isHiraganaQuaternary() {
         return m_isHiragana4_;
     }
index afe34ab235a8e1f8341fe9a369fe40592eb25794..979840bb60f07e8559dab8c00a549d8eb292e57f 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * *****************************************************************************
- * Copyright (C) 2005-2013, International Business Machines Corporation and    *
+ * Copyright (C) 2005-2014, International Business Machines Corporation and    *
  * others. All Rights Reserved.                                                *
  * *****************************************************************************
  */
@@ -1295,8 +1295,6 @@ public  class ICUResourceBundle extends UResourceBundle {
     /**
      * Returns the resource handle for the given key within the calling resource table.
      * 
-     * @internal
-     * @deprecated This API is ICU internal only and a workaround see ticket #6514.
      * @author Brian Rower
      */
     protected int getTableResource(String resKey) {
@@ -1313,8 +1311,6 @@ public  class ICUResourceBundle extends UResourceBundle {
      * @param index The index of the resource to check
      * @returns True if the resource at 'index' is an alias, false otherwise.
      * 
-     * @internal
-     * @deprecated This API is ICU internal only and part of a work around see ticket #6514
      * @author Brian Rower
      */
     public boolean isAlias(int index)
@@ -1325,9 +1321,6 @@ public  class ICUResourceBundle extends UResourceBundle {
     }
 
     /**
-     * 
-     * @internal
-     * @deprecated This API is ICU internal only and part of a workaround see ticket #6514.
      * @author Brian Rower
      */
     public boolean isAlias()
@@ -1341,9 +1334,6 @@ public  class ICUResourceBundle extends UResourceBundle {
      * is an alias. If it is, returns true
      * 
      * @returns True if the resource with 'key' is an alias, false otherwise.
-     * 
-     * @internal
-     * @deprecated This API is ICU internal only and part of a workaround see ticket #6514.
      * @author Brian Rower
      */
     public boolean isAlias(String k)
@@ -1360,9 +1350,6 @@ public  class ICUResourceBundle extends UResourceBundle {
      * @param index The index where the alias path points to.
      * @return The alias path.
      * @author Brian Rower
-     * @internal
-     * @deprecated This API is ICU internal only.
-     * @author Brian Rower
      */
     public String getAliasPath(int index)
     {
@@ -1370,9 +1357,6 @@ public  class ICUResourceBundle extends UResourceBundle {
     }
 
     /**
-     * 
-     * @internal
-     * @deprecated This API is ICU internal only
      * @author Brian Rower
      */
     public String getAliasPath()
@@ -1382,9 +1366,6 @@ public  class ICUResourceBundle extends UResourceBundle {
     }
 
     /**
-     * 
-     * @internal
-     * @deprecated This API is ICU internal only
      * @author Brian Rower
      */
     public String getAliasPath(String k)
@@ -1406,8 +1387,6 @@ public  class ICUResourceBundle extends UResourceBundle {
      * underlying alias's. For all general purposes of the ICU resource bundle please use getKeys().
      * 
      * @return Keys in this table or array.
-     * @internal
-     * @deprecated This API is ICU internal only and a workaround see ticket #6514.
      * @author Brian Rower
      */
     public Enumeration<String> getKeysSafe()
index b7b2dfabe67da253be9a70be17850bba0a7a52a0..2046ef1a5642bf1c77b29981156446ee8688598e 100644 (file)
@@ -1,6 +1,6 @@
  /*
   *******************************************************************************
-  * Copyright (C) 2005-2013, International Business Machines Corporation and         *
+  * Copyright (C) 2005-2014, International Business Machines Corporation and    *
   * others. All Rights Reserved.                                                *
   *******************************************************************************
   */
@@ -275,8 +275,6 @@ public class OlsonTimeZone extends BasicTimeZone {
 
     /**
      * {@inheritDoc}
-     * @internal
-     * @deprecated This API is ICU internal only.
      */
     @Override
     public void getOffsetFromLocal(long date,
index 2bb2fe6cc1078f9b6d9777e3c2cd066c4c6c3ae1..ef09edc2b0108f8d96d01171010153269c9b3741 100644 (file)
@@ -1,6 +1,6 @@
 /*
  ********************************************************************************
- * Copyright (C) 2010-2011, Google, International Business Machines Corporation *
+ * Copyright (C) 2010-2014, Google, International Business Machines Corporation *
  * and others. All Rights Reserved.                                                 *
  ********************************************************************************
  */
@@ -23,6 +23,7 @@ package com.ibm.icu.lang;
  * @internal
  * @deprecated This API is ICU internal only.
  */
+@Deprecated
 public class CharSequences {
     // TODO
     // compareTo(a, b);
@@ -46,6 +47,7 @@ public class CharSequences {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static int matchAfter(CharSequence a, CharSequence b, int aIndex, int bIndex) {
         int i = aIndex, j = bIndex;
         int alen = a.length();
@@ -70,6 +72,7 @@ public class CharSequences {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public int codePointLength(CharSequence s) {
         return Character.codePointCount(s, 0, s.length());
 //        int length = s.length();
@@ -92,6 +95,7 @@ public class CharSequences {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static final boolean equals(int codepoint, CharSequence other) {
         if (other == null) {
             return false;
@@ -107,6 +111,7 @@ public class CharSequences {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static final boolean equals(CharSequence other, int codepoint) {
         return equals(codepoint, other);
     }
@@ -121,6 +126,7 @@ public class CharSequences {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static int compare(CharSequence string, int codePoint) {
         if (codePoint < Character.MIN_CODE_POINT || codePoint > Character.MAX_CODE_POINT) {
             throw new IllegalArgumentException();
@@ -164,6 +170,7 @@ public class CharSequences {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static int compare(int codepoint, CharSequence a) {
         return -compare(a, codepoint);
     }
@@ -174,6 +181,7 @@ public class CharSequences {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static int getSingleCodePoint(CharSequence s) {
         int length = s.length();
         if (length < 1 || length > 2) {
@@ -190,6 +198,7 @@ public class CharSequences {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static final <T extends Object> boolean equals(T a, T b) {
         return a == null ? b == null
                 : b == null ? false
@@ -202,6 +211,7 @@ public class CharSequences {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static int compare(CharSequence a, CharSequence b) {
         int alength = a.length();
         int blength = b.length();
@@ -221,6 +231,7 @@ public class CharSequences {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static boolean equalsChars(CharSequence a, CharSequence b) {
         // do length test first for fast path
         return a.length() == b.length() && compare(a,b) == 0;
@@ -232,6 +243,7 @@ public class CharSequences {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static boolean onCharacterBoundary(CharSequence s, int i) {
         return i <= 0 
         || i >= s.length() 
@@ -245,6 +257,7 @@ public class CharSequences {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static int indexOf(CharSequence s, int codePoint) {
         int cp;
         for (int i = 0; i < s.length(); i += Character.charCount(cp)) {
@@ -267,6 +280,7 @@ public class CharSequences {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static int[] codePoints(CharSequence s) {
         int[] result = new int[s.length()]; // in the vast majority of cases, the length is the same
         int j = 0;
index 24a324f315ccce428fa71c1eb21f56ba4b63b1d4..156cb6d0fb7370cd9d82ece72abec1094bb8ab1d 100644 (file)
@@ -1,6 +1,6 @@
 /**
 *******************************************************************************
-* Copyright (C) 1996-2013, International Business Machines Corporation and
+* Copyright (C) 1996-2014, International Business Machines Corporation and
 * others. All Rights Reserved.
 *******************************************************************************
 */
@@ -3366,6 +3366,7 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection
      * defined by java.lang.Character.isSpace.
      * @deprecated ICU 3.4 (Java)
      */
+    @Deprecated
     public static boolean isSpace(int ch) {
         return ch <= 0x20 &&
             (ch == 0x20 || ch == 0x09 || ch == 0x0a || ch == 0x0c || ch == 0x0d);
@@ -3485,6 +3486,7 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection
      * @return true if the code point can start a java identifier.
      * @deprecated ICU 3.4 (Java)
      */
+    @Deprecated
     public static boolean isJavaLetter(int cp) {
         return isJavaIdentifierStart(cp);
     }
@@ -3497,6 +3499,7 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection
      * @return true if the code point can continue a java identifier.
      * @deprecated ICU 3.4 (Java)
      */
+    @Deprecated
     public static boolean isJavaLetterOrDigit(int cp) {
         return isJavaIdentifierPart(cp);
     }
@@ -4115,6 +4118,7 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection
      * @return null
      * @deprecated ICU 49
      */
+    @Deprecated
     public static String getName1_0(int ch)
     {
         return null;
@@ -4168,6 +4172,7 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection
      * @return null
      * @deprecated ICU 49
      */
+    @Deprecated
     public static String getISOComment(int ch)
     {
         return null;
@@ -4198,6 +4203,7 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection
      * @deprecated ICU 49
      * @see #getName1_0(int)
      */
+    @Deprecated
     public static int getCharFromName1_0(String name){
         return -1;
     }
@@ -5222,6 +5228,7 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection
      * @deprecated ICU 49
      * @see #getName1_0(int)
      */
+    @Deprecated
     public static ValueIterator getName1_0Iterator(){
         return new DummyValueIterator();
     }
@@ -5407,6 +5414,7 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     ///CLOVER:OFF
     public static String getStringPropertyValue(int propertyEnum, int codepoint, int nameChoice) {
         if ((propertyEnum >= UProperty.BINARY_START && propertyEnum < UProperty.BINARY_LIMIT) ||
index b5369136b23026e80e5d133fdc627d295cb2ea9c..3b77252dcbcc6150852542dd5bdc48060651475b 100644 (file)
@@ -1,6 +1,6 @@
 /**
 *******************************************************************************
-* Copyright (C) 1996-2013, International Business Machines Corporation and
+* Copyright (C) 1996-2014, International Business Machines Corporation and
 * others. All Rights Reserved.
 *******************************************************************************
 */
@@ -35,6 +35,7 @@ public interface UProperty
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static final int UNDEFINED = -1;
 
     /** 
@@ -777,6 +778,7 @@ public interface UProperty
      * Corresponds to UCharacter.getISOComment(int).
      * @deprecated ICU 49
      */
+    @Deprecated
     public static final int ISO_COMMENT = 0x4003;
 
     /**
@@ -835,6 +837,7 @@ public interface UProperty
      * Corresponds to UCharacter.getName1_0(int).
      * @deprecated ICU 49
      */
+    @Deprecated
     public static final int UNICODE_1_NAME = 0x400B;
 
     /**
index 7f3b95bb770f96785456960de25a0da377f478a5..8e5b1cb1d2e219c5abb0b2702f27998a6499dcba 100644 (file)
@@ -1,6 +1,6 @@
 /**
 *******************************************************************************
-* Copyright (C) 2001-2013 International Business Machines Corporation and
+* Copyright (C) 2001-2014 International Business Machines Corporation and
 * others. All Rights Reserved.
 *******************************************************************************
 */
@@ -1009,6 +1009,7 @@ public final class UScript {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static final int getCodeFromName(String nameOrAbbr) {
         try {
             return UCharacter.getPropertyValueEnum(UProperty.SCRIPT,
index 46f15a123a4ac96442961d4a8de33a0250ae0f23..761a46717dce55795a38e68c2a63c884909684c6 100644 (file)
@@ -1,7 +1,7 @@
 /*
  *******************************************************************************
  *
- *   Copyright (C) 1999-2009, International Business Machines
+ *   Copyright (C) 1999-2014, International Business Machines
  *   Corporation and others.  All Rights Reserved.
  *
  *******************************************************************************
@@ -49,6 +49,7 @@ import com.ibm.icu.text.UTF16;
  * @internal
  * @deprecated This API is ICU internal only.
  */
+@Deprecated
 public final class UScriptRun
 {
     /**
@@ -58,6 +59,7 @@ public final class UScriptRun
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public UScriptRun()
     {
         char[] nullChars = null;
@@ -74,6 +76,7 @@ public final class UScriptRun
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public UScriptRun(String text)
     {
         reset (text);
@@ -90,6 +93,7 @@ public final class UScriptRun
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public UScriptRun(String text, int start, int count)
     {
         reset(text, start, count);
@@ -104,6 +108,7 @@ public final class UScriptRun
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public UScriptRun(char[] chars)
     {
         reset(chars);
@@ -120,6 +125,7 @@ public final class UScriptRun
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public UScriptRun(char[] chars, int start, int count)
     {
         reset(chars, start, count);
@@ -132,6 +138,7 @@ public final class UScriptRun
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public final void reset()
     {
         // empty any old parenStack contents.
@@ -163,6 +170,7 @@ public final class UScriptRun
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public final void reset(int start, int count)
     throws IllegalArgumentException
     {
@@ -194,6 +202,7 @@ public final class UScriptRun
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public final void reset(char[] chars, int start, int count)
     {
         if (chars == null) {
@@ -214,6 +223,7 @@ public final class UScriptRun
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public final void reset(char[] chars)
     {
         int length = 0;
@@ -237,6 +247,7 @@ public final class UScriptRun
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public final void reset(String str, int start, int count)
     {
         char[] chars = null;
@@ -257,6 +268,7 @@ public final class UScriptRun
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public final void reset(String str)
     {
         int length   = 0;
@@ -278,6 +290,7 @@ public final class UScriptRun
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public final int getScriptStart()
     {
         return scriptStart;
@@ -291,6 +304,7 @@ public final class UScriptRun
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public final int getScriptLimit()
     {
         return scriptLimit;
@@ -305,6 +319,7 @@ public final class UScriptRun
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public final int getScriptCode()
     {
         return scriptCode;
@@ -319,6 +334,7 @@ public final class UScriptRun
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public final boolean next()
     {
         // if we've fallen off the end of the text, we're done
index 4ef1d98addf215a2e17ba55a1856166e72b87ca3..f4e270e99ecc0601fee2088315ca96a18fdb0fa0 100644 (file)
@@ -835,6 +835,7 @@ s     */
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static BreakIterator getBreakInstance(ULocale where, int kind) {
 
         if (iterCache[kind] != null) {
index c1638eb6ce1de266ef1dedbca2c0778399c5ad8d..ba78d00315927a3b0201381047b0f6a9163045e5 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *******************************************************************************
- * Copyright (C) 1996-2010, International Business Machines Corporation and    *
+ * Copyright (C) 1996-2014, International Business Machines Corporation and    *
  * others. All Rights Reserved.                                                *
  *******************************************************************************
  */
@@ -161,6 +161,7 @@ public final class CanonicalIterator {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static void permute(String source, boolean skipZeros, Set<String> output) {
         // TODO: optimize
         //if (PROGRESS) System.out.println("Permute: " + source);
index 6b89b62a41972de852d1959f4f3c72fbf690140c..13d075b206c1bedc4d40617798e2fc81e0d62afd 100644 (file)
@@ -1,6 +1,6 @@
 /**
 *******************************************************************************
-* Copyright (C) 2005-2013, International Business Machines Corporation and    *
+* Copyright (C) 2005-2014, International Business Machines Corporation and    *
 * others. All Rights Reserved.                                                *
 *******************************************************************************
 */
@@ -520,6 +520,7 @@ public class CharsetDetector {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public String[] getDetectableCharsets() {
         List<String> csnames = new ArrayList<String>(ALL_CS_RECOGNIZERS.size());
         for (int i = 0; i < ALL_CS_RECOGNIZERS.size(); i++) {
@@ -547,6 +548,7 @@ public class CharsetDetector {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public CharsetDetector setDetectableCharset(String encoding, boolean enabled) {
         int modIdx = -1;
         boolean isDefaultVal = false;
index 869d76b833f3949150938daa35bbafec79d1881a..d5e4da698afc03d7f7d7d15e5d67e2e07154faf9 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************************
- * Copyright (C) 2000-2012, International Business Machines Corporation and
+ * Copyright (C) 2000-2014, International Business Machines Corporation and
  * others. All Rights Reserved.
  *********************************************************************
  */
@@ -42,6 +42,7 @@ import com.ibm.icu.util.ULocale;
  * @author Alan Liu
  * @deprecated ICU 50 Use SimpleDateFormat instead.
  */
+@Deprecated
 public class ChineseDateFormat extends SimpleDateFormat {
     // Generated by serialver from JDK 1.4.1_01
     static final long serialVersionUID = -4610300753104099899L;
@@ -54,6 +55,7 @@ public class ChineseDateFormat extends SimpleDateFormat {
      * @param locale the locale
      * @deprecated ICU 50
      */
+    @Deprecated
    public ChineseDateFormat(String pattern, Locale locale) {
        this(pattern, ULocale.forLocale(locale));
     }
@@ -64,6 +66,7 @@ public class ChineseDateFormat extends SimpleDateFormat {
      * @param locale the locale
      * @deprecated ICU 50
      */
+    @Deprecated
    public ChineseDateFormat(String pattern, ULocale locale) {
        this(pattern, null, locale);
     }
@@ -81,7 +84,8 @@ public class ChineseDateFormat extends SimpleDateFormat {
      * @param locale the locale
      * @deprecated ICU 50
      */
-   public ChineseDateFormat(String pattern, String override, ULocale locale) {
+    @Deprecated
+    public ChineseDateFormat(String pattern, String override, ULocale locale) {
        super(pattern, new ChineseDateFormatSymbols(locale), 
                new ChineseCalendar(TimeZone.getDefault(), locale), locale, true, override);
     }
@@ -114,6 +118,7 @@ public class ChineseDateFormat extends SimpleDateFormat {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected void subFormat(StringBuffer buf,
                              char ch, int count, int beginOffset,
                              int fieldNum, DisplayContext capitalizationContext,
@@ -137,6 +142,7 @@ public class ChineseDateFormat extends SimpleDateFormat {
      * 
      * @deprecated ICU 50
      */
+    @Deprecated
     protected int subParse(String text, int start, char ch, int count, boolean obeyCount, boolean allowNegative,
             boolean[] ambiguousYear, Calendar cal) {
         // Logic to handle numeric 'G' eras for chinese calendar, and to skip special 2-digit year
@@ -153,6 +159,7 @@ public class ChineseDateFormat extends SimpleDateFormat {
      * 
      * @deprecated ICU 50
      */
+    @Deprecated
     protected DateFormat.Field patternCharToDateFormatField(char ch) {
         // no longer any field corresponding to pattern char 'l'
         return super.patternCharToDateFormatField(ch);
@@ -168,6 +175,7 @@ public class ChineseDateFormat extends SimpleDateFormat {
      * <p>
      * @deprecated ICU 50
      */
+    @Deprecated
     public static class Field extends DateFormat.Field {
 
         private static final long serialVersionUID = -5102130532751400330L;
@@ -176,6 +184,7 @@ public class ChineseDateFormat extends SimpleDateFormat {
          * Constant identifying the leap month marker.
          * @deprecated ICU 50 This field is only used by the deprecated ChineseDateFormat class.
          */
+        @Deprecated
         public static final Field IS_LEAP_MONTH = new Field("is leap month", ChineseCalendar.IS_LEAP_MONTH);
 
         /**
@@ -189,6 +198,7 @@ public class ChineseDateFormat extends SimpleDateFormat {
          * 
          * @deprecated ICU 50
          */
+        @Deprecated
         protected Field(String name, int calendarField) {
             super(name, calendarField);
         }
@@ -206,6 +216,7 @@ public class ChineseDateFormat extends SimpleDateFormat {
          * 
          * @deprecated ICU 50
          */
+        @Deprecated
         public static DateFormat.Field ofCalendarField(int calendarField) {
             // Should we remove the following, since there is no longer a specific
             // date format field for leap month (since 'l' pattern char is obsolete)?
@@ -220,6 +231,7 @@ public class ChineseDateFormat extends SimpleDateFormat {
          * 
          * @deprecated ICU 50
          */
+        @Deprecated
         ///CLOVER:OFF
         protected Object readResolve() throws InvalidObjectException {
             if (this.getClass() != ChineseDateFormat.Field.class) {
index a606973b17af9154a755f11e877ca0b973cca9d4..49a827f14d9678b924a12353d81d8208e7d650b7 100644 (file)
@@ -1,5 +1,5 @@
 /****************************************************************************
- * Copyright (C) 2000-2013, International Business Machines Corporation and
+ * Copyright (C) 2000-2014, International Business Machines Corporation and
  * others. All Rights Reserved.
  ****************************************************************************
  */
@@ -24,6 +24,7 @@ import com.ibm.icu.util.ULocale.Category;
  * @author Alan Liu
  * @deprecated ICU 50 
  */
+@Deprecated
 public class ChineseDateFormatSymbols extends DateFormatSymbols {
     // Generated by serialver from JDK 1.4.1_01
     static final long serialVersionUID = 6827816119783952890L;
@@ -39,6 +40,7 @@ public class ChineseDateFormatSymbols extends DateFormatSymbols {
      * @see Category#FORMAT
      * @deprecated ICU 50
      */
+    @Deprecated
     public ChineseDateFormatSymbols() {
         this(ULocale.getDefault(Category.FORMAT));
     }
@@ -48,6 +50,7 @@ public class ChineseDateFormatSymbols extends DateFormatSymbols {
      * @param locale the locale
      * @deprecated ICU 50
      */
+    @Deprecated
     public ChineseDateFormatSymbols(Locale locale) {
         super(ChineseCalendar.class, ULocale.forLocale(locale));
     }
@@ -57,6 +60,7 @@ public class ChineseDateFormatSymbols extends DateFormatSymbols {
      * @param locale the locale
      * @deprecated ICU 50
      */
+    @Deprecated
     public ChineseDateFormatSymbols(ULocale locale) {
         super(ChineseCalendar.class, locale);
     }
@@ -67,6 +71,7 @@ public class ChineseDateFormatSymbols extends DateFormatSymbols {
      * @param locale the locale
      * @deprecated ICU 50
      */
+    @Deprecated
     public ChineseDateFormatSymbols(Calendar cal, Locale locale) {
         // NPE is thrown here when cal is null, like the super class does
         super(cal.getClass(), locale);
@@ -78,6 +83,7 @@ public class ChineseDateFormatSymbols extends DateFormatSymbols {
      * @param locale the locale
      * @deprecated ICU 50
      */
+    @Deprecated
     public ChineseDateFormatSymbols(Calendar cal, ULocale locale) {
         // NPE is thrown here when cal is null, like the super class does
         super(cal.getClass(), locale);
@@ -87,6 +93,7 @@ public class ChineseDateFormatSymbols extends DateFormatSymbols {
     /**
      * @deprecated ICU 50
      */
+    @Deprecated
     public String getLeapMonth(int leap) {
         return isLeapMonth[leap];
     }
@@ -95,6 +102,7 @@ public class ChineseDateFormatSymbols extends DateFormatSymbols {
      * {@inheritDoc}
      * @deprecated ICU 50
      */
+    @Deprecated
     protected void initializeData(ULocale loc, CalendarData calData) {
         super.initializeData(loc, calData);
         initializeIsLeapMonth();
index a14a10f76d1b32c7daac832becfd3aa5393b697f..ab9b770851d965479047829e1dfa13df65df5410 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *******************************************************************************
- * Copyright (C) 1996-2013, Google, International Business Machines Corporation and
+ * Copyright (C) 1996-2014, Google, International Business Machines Corporation and
  * others. All Rights Reserved.                                                *
  *******************************************************************************
  */
@@ -161,6 +161,7 @@ public class CompactDecimalFormat extends DecimalFormat {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public CompactDecimalFormat(String pattern, DecimalFormatSymbols formatSymbols, 
             CompactStyle style, PluralRules pluralRules,
             long[] divisor, Map<String,String[][]> pluralAffixes, Map<String, String[]> currencyAffixes, 
index 7e196917fe6c2a5395da6bc60a6ea65d21753932..64902e76cc836cc22b233cc7c1049761e0685626 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *******************************************************************************
- * Copyright (C) 1996-2010, International Business Machines Corporation and    *
+ * Copyright (C) 1996-2014, International Business Machines Corporation and    *
  * others. All Rights Reserved.                                                *
  *******************************************************************************
  */
@@ -53,6 +53,7 @@ import com.ibm.icu.impl.Normalizer2Impl;
  * It will be updated as later versions of Unicode are released.
  * @deprecated ICU 2.2
  */
+@Deprecated
 ///CLOVER:OFF
 public final class ComposedCharIter {
     /**
@@ -61,6 +62,7 @@ public final class ComposedCharIter {
      * over which to iterate.
      * @deprecated ICU 2.2
      */
+    @Deprecated
     public static final  char DONE = (char) Normalizer.DONE;
 
     /**
@@ -69,6 +71,7 @@ public final class ComposedCharIter {
      * Hangul characters.
      * @deprecated ICU 2.2
      */
+    @Deprecated
     public ComposedCharIter() {
         this(false, 0);
     }
@@ -83,6 +86,7 @@ public final class ComposedCharIter {
      * @param options   Optional decomposition features. None are supported, so this is ignored.
      * @deprecated ICU 2.2
      */
+    @Deprecated
     public ComposedCharIter(boolean compat, int options) {
         if(compat) {
             n2impl = Norm2AllModes.getNFKCInstance().impl;
@@ -96,6 +100,7 @@ public final class ComposedCharIter {
      * by {@link #next}.
      * @deprecated ICU 2.2
      */
+    @Deprecated
     public boolean hasNext() {
         if (nextChar == Normalizer.DONE)  {
             findNextChar();
@@ -111,6 +116,7 @@ public final class ComposedCharIter {
      * to <tt>next</tt> will return {@link #DONE}.
      * @deprecated ICU 2.2
      */
+    @Deprecated
     public char next() {
         if (nextChar == Normalizer.DONE)  {
             findNextChar();
@@ -127,6 +133,7 @@ public final class ComposedCharIter {
      * affected by the settings of the options passed to the constructor.
      * @deprecated ICU 2.2
      */
+    @Deprecated
     public String decomposition() {
         // the decomposition buffer contains the decomposition of 
         // current char so just return it
index 4e04d6b7234a26e7ab0c82d45f409a1289b74436..390ffc9bc9ddb1127d107317a7eea28ffe4d24cc 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *******************************************************************************
- * Copyright (C) 2009-2013, International Business Machines Corporation and    *
+ * Copyright (C) 2009-2014, International Business Machines Corporation and    *
  * others. All Rights Reserved.                                                *
  *******************************************************************************
  */
@@ -59,6 +59,7 @@ public abstract class CurrencyDisplayNames {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static boolean hasData() {
         return CurrencyData.provider.hasData();
     }
@@ -127,6 +128,7 @@ public abstract class CurrencyDisplayNames {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected CurrencyDisplayNames() {
     }
 }
index 9f98665e9c9aa16054736982d328267bff4e9fab..12d80785ff203ae2925221c141cef97c08faca51 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *******************************************************************************
- * Copyright (C) 2009-2013, International Business Machines Corporation and    *
+ * Copyright (C) 2009-2014, International Business Machines Corporation and    *
  * others. All Rights Reserved.                                                *
  *******************************************************************************
  */
@@ -58,6 +58,7 @@ public class CurrencyMetaInfo {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static boolean hasData() {
         return hasData;
     }
@@ -67,6 +68,7 @@ public class CurrencyMetaInfo {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected CurrencyMetaInfo() {
     }
 
@@ -104,6 +106,7 @@ public class CurrencyMetaInfo {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public final boolean tenderOnly;
 
         private CurrencyFilter(String region, String currency, long from, long to, boolean tenderOnly) {
@@ -453,7 +456,8 @@ public class CurrencyMetaInfo {
 
         /**
          * @deprecated ICU 51 Use {@link CurrencyMetaInfo#currencyInfo(CurrencyFilter)} instead.
-         */     
+         */
+        @Deprecated
         public CurrencyInfo(String region, String code, long from, long to, int priority) {
             this(region, code, from, to, priority, true);
         }
@@ -464,6 +468,7 @@ public class CurrencyMetaInfo {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public CurrencyInfo(String region, String code, long from, long to, int priority, boolean tender) {
             this.region = region;
             this.code = code;
@@ -548,6 +553,7 @@ public class CurrencyMetaInfo {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected static final CurrencyDigits defaultDigits = new CurrencyDigits(2, 0);
 
     static {
index 64f57a3e50f16bf10012ca1157886b21f793e85d..5b0cdfa4040e2811c6cf1c49149df442e73b54b1 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *******************************************************************************
- * Copyright (C) 2009-2013, International Business Machines Corporation and    *
+ * Copyright (C) 2009-2014, International Business Machines Corporation and    *
  * others. All Rights Reserved.                                                *
  *******************************************************************************
  */
@@ -225,6 +225,7 @@ public class CurrencyPluralInfo implements Cloneable, Serializable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public int hashCode() {
         assert false : "hashCode not designed";
         return 42;
@@ -236,6 +237,7 @@ public class CurrencyPluralInfo implements Cloneable, Serializable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     String select(double number) {
         return pluralRules.select(number);
     }
@@ -246,6 +248,7 @@ public class CurrencyPluralInfo implements Cloneable, Serializable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     String select(PluralRules.FixedDecimal numberInfo) {
         return pluralRules.select(numberInfo);
     }
index ef5138cdcecfff44e27078e8eccebaad606b6d2e..19f79048475ef8bd51ef50e73f09653f775309d3 100644 (file)
@@ -1123,36 +1123,42 @@ public abstract class DateFormat extends UFormat {
      * {@icu} Constant for date skeleton with standalone month.
      * @deprecated ICU 50 Use {@link #MONTH} instead.
      */
+    @Deprecated
     public static final String STANDALONE_MONTH = "LLLL";
 
     /**
      * {@icu} Constant for date skeleton with standalone abbreviated month.
      * @deprecated ICU 50 Use {@link #ABBR_MONTH} instead.
      */
+    @Deprecated
     public static final String ABBR_STANDALONE_MONTH = "LLL";
 
     /**
      * {@icu} Constant for date skeleton with hour, minute, and generic timezone.
      * @deprecated ICU 50 Use instead {@link #HOUR_MINUTE}+{@link #ABBR_GENERIC_TZ} or some other timezone presentation.
      */
+    @Deprecated
     public static final String HOUR_MINUTE_GENERIC_TZ = "jmv";
 
     /**
      * {@icu} Constant for date skeleton with hour, minute, and timezone.
      * @deprecated ICU 50 Use instead {@link #HOUR_MINUTE}+{@link #ABBR_SPECIFIC_TZ} or some other timezone presentation.
      */
+    @Deprecated
     public static final String HOUR_MINUTE_TZ = "jmz";
 
     /**
      * {@icu} Constant for date skeleton with hour and generic timezone.
      * @deprecated ICU 50 Use instead {@link #HOUR}+{@link #ABBR_GENERIC_TZ} or some other timezone presentation.
      */
+    @Deprecated
     public static final String HOUR_GENERIC_TZ = "jv";
 
     /**
      * {@icu} Constant for date skeleton with hour and timezone.
      * @deprecated ICU 50 Use instead {@link #HOUR}+{@link #ABBR_SPECIFIC_TZ} or some other timezone presentation.
      */
+    @Deprecated
     public static final String HOUR_TZ = "jz";
 
 
index a2ab0d2848c359c528be724a947b1b5e1adea768..e66a234f5259ab127b8aa4b94b6cb8c3282f26d2 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *******************************************************************************
- * Copyright (C) 1996-2013, International Business Machines Corporation and    *
+ * Copyright (C) 1996-2014, International Business Machines Corporation and    *
  * others. All Rights Reserved.                                                *
  *******************************************************************************
  */
@@ -99,6 +99,7 @@ public class DateFormatSymbols implements Serializable, Cloneable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static final int DT_CONTEXT_COUNT = 2;
 
     // Constants for width
@@ -133,6 +134,7 @@ public class DateFormatSymbols implements Serializable, Cloneable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static final int DT_WIDTH_COUNT = 4;
 
      /**
@@ -1274,6 +1276,7 @@ public class DateFormatSymbols implements Serializable, Cloneable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     // This API was accidentally marked as @stable ICU 3.0 formerly.
     protected void initializeData(ULocale desiredLocale, CalendarData calData)
     {
@@ -1698,6 +1701,7 @@ public class DateFormatSymbols implements Serializable, Cloneable {
      * this API no longer works as described.  This method always returns null.
      * @deprecated ICU 4.0
      */
+    @Deprecated
     // This API was formerly @stable ICU 2.0
     static public ResourceBundle getDateFormatBundle(Class<? extends Calendar> calendarClass,
                                                      Locale locale)
@@ -1719,6 +1723,7 @@ public class DateFormatSymbols implements Serializable, Cloneable {
      * this API no longer works as described.  This method always returns null.
      * @deprecated ICU 4.0
      */
+    @Deprecated
     // This API was formerly @stable ICU 3.2
     static public ResourceBundle getDateFormatBundle(Class<? extends Calendar> calendarClass,
                                                      ULocale locale)
@@ -1735,6 +1740,7 @@ public class DateFormatSymbols implements Serializable, Cloneable {
      * @see #getDateFormatBundle(java.lang.Class, java.util.Locale)
      * @deprecated ICU 4.0
      */
+    @Deprecated
     // This API was formerly @stable ICU 2.2
     public static ResourceBundle getDateFormatBundle(Calendar cal, Locale locale)
         throws MissingResourceException {
@@ -1750,6 +1756,7 @@ public class DateFormatSymbols implements Serializable, Cloneable {
      * @see #getDateFormatBundle(java.lang.Class, java.util.Locale)
      * @deprecated ICU 4.0
      */
+    @Deprecated
     // This API was formerly @stable ICU 3.2
     public static ResourceBundle getDateFormatBundle(Calendar cal, ULocale locale)
         throws MissingResourceException {
index 1e089ae2b00a817f160ab23b6acd8c5bae6413e2..dcce819a96329548ef759109893f6b3ebb717557 100644 (file)
@@ -1,5 +1,5 @@
 /*
-*   Copyright (C) 2008-2013, International Business Machines
+*   Copyright (C) 2008-2014, International Business Machines
 *   Corporation and others.  All Rights Reserved.
 */
 
@@ -345,6 +345,7 @@ public class DateIntervalFormat extends UFormat {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public DateIntervalFormat(String skeleton, DateIntervalInfo dtItvInfo,
                                SimpleDateFormat simpleDateFormat)
     {
@@ -610,6 +611,7 @@ public class DateIntervalFormat extends UFormat {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public String getPatterns(Calendar fromCalendar,
             Calendar toCalendar, 
             Output<String> part2) {
@@ -833,6 +835,7 @@ public class DateIntervalFormat extends UFormat {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public Object parseObject(String source, ParsePosition parse_pos)
     {
         throw new UnsupportedOperationException("parsing is not supported");
index c17d2eea9226c0a68a990589cfbb4ab8513b1fe8..7cb2950c6174febd423ff7926d88bc21b3b51eb7 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *******************************************************************************
- * Copyright (C) 2008-2013, International Business Machines Corporation and    *
+ * Copyright (C) 2008-2014, International Business Machines Corporation and    *
  * others. All Rights Reserved.                                                *
  *******************************************************************************
  */
@@ -304,6 +304,7 @@ public class DateIntervalInfo implements Cloneable, Freezable<DateIntervalInfo>,
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public DateIntervalInfo() 
     {
         fIntervalPatterns = new HashMap<String, Map<String, PatternInfo>>();
@@ -985,6 +986,7 @@ public class DateIntervalInfo implements Cloneable, Freezable<DateIntervalInfo>,
      * @internal CLDR
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public Map<String,Set<String>> getPatterns() {
         LinkedHashMap<String,Set<String>> result = new LinkedHashMap<String,Set<String>>();
         for (Entry<String, Map<String, PatternInfo>> entry : fIntervalPatterns.entrySet()) {
index 04d197010afcf31ce029e05874ca23ea235bc65a..17481d1d6bf27a09387307cb2cb0ca80e516752f 100644 (file)
@@ -1,6 +1,6 @@
 /*
  ********************************************************************************
- * Copyright (C) 2006-2013, Google, International Business Machines Corporation *
+ * Copyright (C) 2006-2014, Google, International Business Machines Corporation *
  * and others. All Rights Reserved.                                             *
  ********************************************************************************
  */
@@ -95,6 +95,7 @@ public class DateTimePatternGenerator implements Freezable<DateTimePatternGenera
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static DateTimePatternGenerator getFrozenInstance(ULocale uLocale) {
         String localeKey = uLocale.toString();
         DateTimePatternGenerator result = DTPNG_CACHE.get(localeKey);
@@ -242,6 +243,7 @@ public class DateTimePatternGenerator implements Freezable<DateTimePatternGenera
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public char getDefaultHourFormatChar() {
         return defaultHourFormatChar;
     }
@@ -250,6 +252,7 @@ public class DateTimePatternGenerator implements Freezable<DateTimePatternGenera
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public void setDefaultHourFormatChar(char defaultHourFormatChar) {
         this.defaultHourFormatChar = defaultHourFormatChar;
     }
@@ -329,6 +332,7 @@ public class DateTimePatternGenerator implements Freezable<DateTimePatternGenera
      * @internal CLDR
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static int getAppendFormatNumber(String string) {
         for (int i = 0; i < CLDR_FIELD_APPEND.length; ++i) {
             if (CLDR_FIELD_APPEND[i].equals(string)) return i;
@@ -496,6 +500,7 @@ public class DateTimePatternGenerator implements Freezable<DateTimePatternGenera
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public DateTimePatternGenerator addPatternWithSkeleton(String pattern, String skeletonToUse, boolean override, PatternInfo returnInfo) {
         checkFrozen();
         DateTimeMatcher matcher;
@@ -564,6 +569,7 @@ public class DateTimePatternGenerator implements Freezable<DateTimePatternGenera
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public String getSkeletonAllowingDuplicates(String pattern) {
         synchronized (this) { // synchronized since a getter must be thread-safe
             current.set(pattern, fp, true);
@@ -580,6 +586,7 @@ public class DateTimePatternGenerator implements Freezable<DateTimePatternGenera
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public String getCanonicalSkeletonAllowingDuplicates(String pattern) {
         synchronized (this) { // synchronized since a getter must be thread-safe
             current.set(pattern, fp, true);
@@ -755,6 +762,7 @@ public class DateTimePatternGenerator implements Freezable<DateTimePatternGenera
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public Collection<String> getRedundants(Collection<String> output) {
         synchronized (this) { // synchronized since a getter must be thread-safe
             if (output == null) {
@@ -907,6 +915,7 @@ public class DateTimePatternGenerator implements Freezable<DateTimePatternGenera
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static final int MATCH_MINUTE_FIELD_LENGTH = 1 << MINUTE;
 
     /**
@@ -914,6 +923,7 @@ public class DateTimePatternGenerator implements Freezable<DateTimePatternGenera
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static final int MATCH_SECOND_FIELD_LENGTH = 1 << SECOND;
 
     /**
@@ -995,6 +1005,7 @@ public class DateTimePatternGenerator implements Freezable<DateTimePatternGenera
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static boolean isSingleField(String skeleton) {
         char first = skeleton.charAt(0);
         for (int i = 1; i < skeleton.length(); ++i) {
@@ -1091,6 +1102,7 @@ public class DateTimePatternGenerator implements Freezable<DateTimePatternGenera
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static class VariableField {
         private final String string;
         private final int canonicalIndex;
@@ -1101,6 +1113,7 @@ public class DateTimePatternGenerator implements Freezable<DateTimePatternGenera
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public VariableField(String string) {
             this(string, false);
         }
@@ -1112,6 +1125,7 @@ public class DateTimePatternGenerator implements Freezable<DateTimePatternGenera
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public VariableField(String string, boolean strict) {
             canonicalIndex = DateTimePatternGenerator.getCanonicalIndex(string, strict);
             if (canonicalIndex < 0) {
@@ -1129,6 +1143,7 @@ public class DateTimePatternGenerator implements Freezable<DateTimePatternGenera
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public int getType() {
             return types[canonicalIndex][1];
         }
@@ -1137,6 +1152,7 @@ public class DateTimePatternGenerator implements Freezable<DateTimePatternGenera
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public static String getCanonicalCode(int type) {
             try {
                 return CANONICAL_ITEMS[type];
@@ -1150,6 +1166,7 @@ public class DateTimePatternGenerator implements Freezable<DateTimePatternGenera
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public boolean isNumeric() {
             return types[canonicalIndex][2] > 0;
         }
@@ -1166,6 +1183,7 @@ public class DateTimePatternGenerator implements Freezable<DateTimePatternGenera
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public String toString() {
             return string;
         }
@@ -1197,6 +1215,7 @@ public class DateTimePatternGenerator implements Freezable<DateTimePatternGenera
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     static public class FormatParser {
         private transient PatternTokenizer tokenizer = new PatternTokenizer()
         .setSyntaxCharacters(new UnicodeSet("[a-zA-Z]"))
@@ -1210,6 +1229,7 @@ public class DateTimePatternGenerator implements Freezable<DateTimePatternGenera
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public FormatParser() {
         }
 
@@ -1220,6 +1240,7 @@ public class DateTimePatternGenerator implements Freezable<DateTimePatternGenera
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         final public FormatParser set(String string) {
             return set(string, false);
         }
@@ -1232,6 +1253,7 @@ public class DateTimePatternGenerator implements Freezable<DateTimePatternGenera
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public FormatParser set(String string, boolean strict) {
             items.clear();
             if (string.length() == 0) return this;
@@ -1288,8 +1310,6 @@ public class DateTimePatternGenerator implements Freezable<DateTimePatternGenera
         //        /**
         //         * Produce a string which concatenates all the variables. That is, it is the logically the same as the input with all literals removed.
         //         * @return a string which is a concatenation of all the variable fields
-        //         * @internal
-        //         * @deprecated This API is ICU internal only.
         //         */
         //        public String getVariableFieldString() {
         //            List list = getVariableFields(null);
@@ -1313,6 +1333,7 @@ public class DateTimePatternGenerator implements Freezable<DateTimePatternGenera
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public List<Object> getItems() {
             return items;
         }
@@ -1322,6 +1343,7 @@ public class DateTimePatternGenerator implements Freezable<DateTimePatternGenera
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public String toString() {
             return toString(0, items.size());
         }
@@ -1334,6 +1356,7 @@ public class DateTimePatternGenerator implements Freezable<DateTimePatternGenera
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public String toString(int start, int limit) {
             StringBuilder result = new StringBuilder();
             for (int i = start; i < limit; ++i) {
@@ -1354,6 +1377,7 @@ public class DateTimePatternGenerator implements Freezable<DateTimePatternGenera
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public boolean hasDateAndTimeFields() {
             int foundMask = 0;
             for (Object item : items) {
@@ -1372,8 +1396,6 @@ public class DateTimePatternGenerator implements Freezable<DateTimePatternGenera
         //         * @param value
         //         * @param result
         //         * @return list
-        //         * @internal
-        //         * @deprecated This API is ICU internal only.
         //         */
         //        public List getAutoPatterns(String value, List result) {
         //            if (result == null) result = new ArrayList();
@@ -1467,6 +1489,7 @@ public class DateTimePatternGenerator implements Freezable<DateTimePatternGenera
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public Object quoteLiteral(String string) {
             return tokenizer.quoteLiteral(string);
         }
@@ -1489,6 +1512,7 @@ public class DateTimePatternGenerator implements Freezable<DateTimePatternGenera
     * @internal
     * @deprecated This API is ICU internal only.
     */
+    @Deprecated
     public boolean skeletonsAreSimilar(String id, String skeleton) {
         if (id.equals(skeleton)) {
             return true; // fast path
@@ -1797,6 +1821,7 @@ public class DateTimePatternGenerator implements Freezable<DateTimePatternGenera
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public String getFields(String pattern) {
         fp.set(pattern);
         StringBuilder newPattern = new StringBuilder();
index 1361486b35d4d05577850116c5ac5dd26972e453..799ecf5cb60241a099e6c2b7c2f60fd4fc78dc04 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *******************************************************************************
- * Copyright (C) 1996-2013, International Business Machines Corporation and    *
+ * Copyright (C) 1996-2014, International Business Machines Corporation and    *
  * others. All Rights Reserved.                                                *
  *******************************************************************************
  */
@@ -934,7 +934,7 @@ public class DecimalFormat extends NumberFormat {
      * @return The number rounded to the correct number of significant digits
      * with negative sign stripped off.
      * @internal
-     * @deprecated
+     * @deprecated This API is ICU internal only.
      */
     @Deprecated
     double adjustNumberAsInFormatting(double number) {
@@ -962,7 +962,7 @@ public class DecimalFormat extends NumberFormat {
       * @param number The number to format.
       * @return True if number is negative.
       * @internal
-      * @deprecated
+      * @deprecated This API is ICU internal only.
       */
      @Deprecated
      boolean isNumberNegative(double number) {
index cc01e13b3ec12107ee314d321aa5368d1c6e8d96..475dc89d1c96f74aa4b9cf42e6a08d7de9a507b4 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *******************************************************************************
- * Copyright (C) 1996-2013, International Business Machines Corporation and    *
+ * Copyright (C) 1996-2014, International Business Machines Corporation and    *
  * others. All Rights Reserved.                                                *
  *******************************************************************************
  */
@@ -409,6 +409,7 @@ public class DecimalFormatSymbols implements Cloneable, Serializable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public String getMinusString() {
         return minusString;
     }
@@ -586,6 +587,7 @@ public class DecimalFormatSymbols implements Cloneable, Serializable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public String getPlusString() {
         return plusString;
     }
index 776d7e600f2e12f2c878f8457c1dbf25571003b7..2debc288a6d1c0d74558434c2e69f51189f295a0 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *******************************************************************************
- * Copyright (C) 2007-2009, International Business Machines Corporation and    *
+ * Copyright (C) 2007-2014, International Business Machines Corporation and    *
  * others. All Rights Reserved.                                                *
  *******************************************************************************
  */
@@ -37,6 +37,7 @@ public abstract class DurationFormat extends UFormat {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected DurationFormat() {
     }
     
@@ -45,6 +46,7 @@ public abstract class DurationFormat extends UFormat {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected DurationFormat(ULocale locale) {
         setLocale(locale,locale);
     }
index 7a6078500f0e79937b6571cf5b98592ba902a234..9d0100f7e35cb5b7368081df52e3b7af83e345c1 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *******************************************************************************
- * Copyright (C) 2003-2013, International Business Machines Corporation and    *
+ * Copyright (C) 2003-2014, International Business Machines Corporation and    *
  * others. All Rights Reserved.                                                *
  *******************************************************************************
  */
@@ -271,6 +271,7 @@ public abstract class IDNA {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected static void resetInfo(Info info) {
         info.reset();
     }
@@ -278,6 +279,7 @@ public abstract class IDNA {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected static boolean hasCertainErrors(Info info, EnumSet<Error> errors) {
         return !info.errors.isEmpty() && !Collections.disjoint(info.errors, errors);
     }
@@ -285,6 +287,7 @@ public abstract class IDNA {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected static boolean hasCertainLabelErrors(Info info, EnumSet<Error> errors) {
         return !info.labelErrors.isEmpty() && !Collections.disjoint(info.labelErrors, errors);
     }
@@ -292,6 +295,7 @@ public abstract class IDNA {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected static void addLabelError(Info info, Error error) {
         info.labelErrors.add(error);
     }
@@ -299,6 +303,7 @@ public abstract class IDNA {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected static void promoteAndResetLabelErrors(Info info) {
         if(!info.labelErrors.isEmpty()) {
             info.errors.addAll(info.labelErrors);
@@ -309,6 +314,7 @@ public abstract class IDNA {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected static void addError(Info info, Error error) {
         info.errors.add(error);
     }
@@ -316,6 +322,7 @@ public abstract class IDNA {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected static void setTransitionalDifferent(Info info) {
         info.isTransDiff=true;
     }
@@ -323,6 +330,7 @@ public abstract class IDNA {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected static void setBiDi(Info info) {
         info.isBiDi=true;
     }
@@ -330,6 +338,7 @@ public abstract class IDNA {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected static boolean isBiDi(Info info) {
         return info.isBiDi;
     }
@@ -337,6 +346,7 @@ public abstract class IDNA {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected static void setNotOkBiDi(Info info) {
         info.isOkBiDi=false;
     }
@@ -344,6 +354,7 @@ public abstract class IDNA {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected static boolean isOkBiDi(Info info) {
         return info.isOkBiDi;
     }
@@ -450,6 +461,7 @@ public abstract class IDNA {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected IDNA() {
     }
 
index 0451c515ea587a3add8de7c4fe4a57dad19ed66e..b63d40b43ba832c92d17cef38b9f689f71eb682c 100644 (file)
@@ -36,6 +36,7 @@ import com.ibm.icu.text.SpoofChecker.RestrictionLevel;
  * @internal
  * @deprecated This API is ICU internal only.
  */
+@Deprecated
 public class IdentifierInfo {
 
     private static final UnicodeSet ASCII = new UnicodeSet(0, 0x7F).freeze();
@@ -53,6 +54,7 @@ public class IdentifierInfo {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public IdentifierInfo() {
         super();
     }
@@ -73,6 +75,8 @@ public class IdentifierInfo {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
+    
     public IdentifierInfo setIdentifierProfile(UnicodeSet identifierProfile) {
         this.identifierProfile.set(identifierProfile);
         return this;
@@ -85,6 +89,8 @@ public class IdentifierInfo {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
+    
     public UnicodeSet getIdentifierProfile() {
         return new UnicodeSet(identifierProfile);
     }
@@ -97,6 +103,7 @@ public class IdentifierInfo {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated    
     public IdentifierInfo setIdentifier(String identifier) {
         this.identifier = identifier;
         clear();
@@ -166,6 +173,7 @@ public class IdentifierInfo {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public String getIdentifier() {
         return identifier;
     }
@@ -177,6 +185,7 @@ public class IdentifierInfo {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public BitSet getScripts() {
         return (BitSet) requiredScripts.clone();
     }
@@ -189,6 +198,7 @@ public class IdentifierInfo {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public Set<BitSet> getAlternates() {
         Set<BitSet> result = new HashSet<BitSet>();
         for (BitSet item : scriptSetSet) {
@@ -204,6 +214,7 @@ public class IdentifierInfo {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public UnicodeSet getNumerics() {
         return new UnicodeSet(numerics);
     }
@@ -215,6 +226,7 @@ public class IdentifierInfo {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public BitSet getCommonAmongAlternates() {
         return (BitSet) commonAmongAlternates.clone();
     }
@@ -235,6 +247,7 @@ public class IdentifierInfo {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public RestrictionLevel getRestrictionLevel() {
         if (!identifierProfile.containsAll(identifier) || getNumerics().size() > 1) {
             return RestrictionLevel.UNRESTRICTIVE;
@@ -277,6 +290,7 @@ public class IdentifierInfo {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public int getScriptCount() {
         // Note: Common and Inherited scripts were removed by setIdentifier(), and do not appear in fRequiredScripts.
         int count = requiredScripts.cardinality() +
@@ -290,6 +304,7 @@ public class IdentifierInfo {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     @Override
     public String toString() {
         return identifier + ", " + identifierProfile.toPattern(false) + ", " + getRestrictionLevel() + ", "
@@ -317,6 +332,7 @@ public class IdentifierInfo {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static String displayAlternates(Set<BitSet> alternates) {
         if (alternates.size() == 0) {
             return "";
@@ -339,6 +355,7 @@ public class IdentifierInfo {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static final Comparator<BitSet> BITSET_COMPARATOR = new Comparator<BitSet>() {
 
         public int compare(BitSet arg0, BitSet arg1) {
@@ -363,6 +380,7 @@ public class IdentifierInfo {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static String displayScripts(BitSet scripts) {
         StringBuilder result = new StringBuilder();
         for (int i = scripts.nextSetBit(0); i >= 0; i = scripts.nextSetBit(i + 1)) {
@@ -382,6 +400,7 @@ public class IdentifierInfo {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static BitSet parseScripts(String scriptsString) {
         BitSet result = new BitSet();
         for (String item : scriptsString.trim().split(",?\\s+")) {
@@ -400,6 +419,7 @@ public class IdentifierInfo {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static Set<BitSet> parseAlternates(String scriptsSetString) {
         Set<BitSet> result = new HashSet<BitSet>();
         for (String item : scriptsSetString.trim().split("\\s*;\\s*")) {
@@ -419,6 +439,7 @@ public class IdentifierInfo {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static final boolean contains(BitSet container, BitSet containee) {
         for (int i = containee.nextSetBit(0); i >= 0; i = containee.nextSetBit(i + 1)) {
             if (!container.get(i)) {
@@ -437,6 +458,7 @@ public class IdentifierInfo {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static final BitSet set(BitSet bitset, int... values) {
         for (int value : values) {
             bitset.set(value);
index ef9679aee54d06efb2fe75ba4d94657572c80692..9004aef1c6a8874287cee21e9f45c9fa049ab648 100644 (file)
@@ -42,30 +42,35 @@ final public class ListFormatter {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public enum Style {
         /**
          * Standard style.
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         STANDARD("standard"),
         /**
          * Style for full durations
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         DURATION("unit"),
         /**
          * Style for durations in abbrevated form
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         DURATION_SHORT("unit-short"),
         /**
          * Style for durations in narrow form
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         DURATION_NARROW("unit-narrow");
         
         private final String name;
@@ -77,6 +82,7 @@ final public class ListFormatter {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public String getName() {
             return name;
         }
@@ -102,6 +108,7 @@ final public class ListFormatter {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public ListFormatter(String two, String start, String middle, String end) {
         this(
                 SimplePatternFormatter.compile(two),
@@ -155,6 +162,7 @@ final public class ListFormatter {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static ListFormatter getInstance(ULocale locale, Style style) {
         return cache.get(locale, style.getName());
     }
@@ -247,6 +255,7 @@ final public class ListFormatter {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public ULocale getLocale() {
         return locale;
     }
index 8264d85846a8e2610ecad426f9c43ddffcebe6e5..9e12fb4a006d50034c9be2db99f283581e1ebe0a 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *******************************************************************************
- * Copyright (C) 2009-2012, International Business Machines Corporation and    *
+ * Copyright (C) 2009-2014, International Business Machines Corporation and    *
  * others. All Rights Reserved.                                                *
  *******************************************************************************
  */
@@ -150,6 +150,7 @@ public abstract class LocaleDisplayNames {
      * @internal ICU 49
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public String scriptDisplayNameInContext(String script) {
         return scriptDisplayName(script);
     }
@@ -202,6 +203,7 @@ public abstract class LocaleDisplayNames {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected LocaleDisplayNames() {
     }
 }
index 17d4e29210e1b417ae0df95c57c6daa2c19c209c..867afc61a3dedc0aaa1480eab0fc81bfac03200b 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *******************************************************************************
- * Copyright (C) 2000-2012, International Business Machines Corporation and
+ * Copyright (C) 2000-2014, International Business Machines Corporation and
  * others. All Rights Reserved.
  *******************************************************************************
  */
@@ -225,6 +225,7 @@ public final class Normalizer implements Cloneable {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         protected abstract Normalizer2 getNormalizer2(int options);
     }
 
@@ -318,6 +319,7 @@ public final class Normalizer implements Cloneable {
      * @deprecated ICU 2.8. Use Nomalizer.NONE
      * @see #NONE
      */
+    @Deprecated
     public static final Mode NO_OP = NONE;
 
     /**
@@ -336,6 +338,7 @@ public final class Normalizer implements Cloneable {
      * @deprecated ICU 2.8. Use Normalier.NFC
      * @see #NFC
      */
+    @Deprecated
     public static final Mode COMPOSE = NFC;
 
     /**
@@ -354,6 +357,7 @@ public final class Normalizer implements Cloneable {
      * @deprecated ICU 2.8. Use Normalizer.NFKC
      * @see #NFKC
      */
+    @Deprecated
     public static final Mode COMPOSE_COMPAT = NFKC;
 
     /**
@@ -372,6 +376,7 @@ public final class Normalizer implements Cloneable {
      * @deprecated ICU 2.8. Use Normalizer.NFD
      * @see #NFD
      */
+    @Deprecated
     public static final Mode DECOMP = NFD;
 
     /**
@@ -390,6 +395,7 @@ public final class Normalizer implements Cloneable {
      * @deprecated ICU 2.8. Use Normalizer.NFKD
      * @see #NFKD
      */
+    @Deprecated
     public static final Mode DECOMP_COMPAT = NFKD;
 
     /**
@@ -410,6 +416,7 @@ public final class Normalizer implements Cloneable {
      * @see #setOption
      * @deprecated ICU 2.8. This option is no longer supported.
      */
+    @Deprecated
     public static final int IGNORE_HANGUL = 0x0001;
           
     /**
@@ -1499,6 +1506,7 @@ public final class Normalizer implements Cloneable {
      * @deprecated ICU 3.2
      * @obsolete ICU 3.2
      */
+    @Deprecated
      ///CLOVER:OFF
      public int setIndex(int index) {
          setIndexOnly(index);
@@ -1513,6 +1521,7 @@ public final class Normalizer implements Cloneable {
      * @return The codepoint as an int
      * @see #startIndex
      */
+    @Deprecated
     public int getBeginIndex() {
         return 0;
     }
@@ -1525,6 +1534,7 @@ public final class Normalizer implements Cloneable {
      * @return The codepoint as an int
      * @see #endIndex
      */
+    @Deprecated
     public int getEndIndex() {
         return endIndex();
     }
index 4553780c7ca8ca0e033250e45dbca441cebbb620..195fbf6c08087a16d583cf4d2501f2f9b9d7df12 100644 (file)
@@ -1,6 +1,6 @@
 /*
 *******************************************************************************
-*   Copyright (C) 2009-2013, International Business Machines
+*   Copyright (C) 2009-2014, International Business Machines
 *   Corporation and others.  All Rights Reserved.
 *******************************************************************************
 */
@@ -421,6 +421,7 @@ public abstract class Normalizer2 {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected Normalizer2() {
     }
 }
index 6ae953b92ead73d3141bae3aeefa21bc72010ade..29781a86cd9bddd2451cd7f015deffc70810e847 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *******************************************************************************
- * Copyright (C) 2007-2013, International Business Machines Corporation and
+ * Copyright (C) 2007-2014, International Business Machines Corporation and
  * others. All Rights Reserved.
  *******************************************************************************
  */
@@ -653,6 +653,7 @@ public class PluralFormat extends UFormat {
      *             a different kind of PluralRules instance;
      *             use one of the constructors to create a new instance instead.
      */
+    @Deprecated
     public void setLocale(ULocale ulocale) {
         if (ulocale == null) {
             ulocale = ULocale.getDefault(Category.FORMAT);
index 0fc31621871a86927285661897f42e2f63860c93..7185249dc72a924840625f8c44d0502270e4faca 100644 (file)
@@ -174,11 +174,13 @@ public class PluralRules implements Serializable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static final String CATEGORY_SEPARATOR = ";  ";
     /**
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static final String KEYWORD_RULE_SEPARATOR = ": ";
 
     private static final long serialVersionUID = 1;
@@ -189,9 +191,10 @@ public class PluralRules implements Serializable {
     /**
      * Provides a factory for returning plural rules
      * 
-     * @deprecated This API is ICU internal only.
      * @internal
+     * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static abstract class Factory {
         /**
          * Provides access to the predefined <code>PluralRules</code> for a given locale and the plural type.
@@ -207,18 +210,20 @@ public class PluralRules implements Serializable {
          * @return The predefined <code>PluralRules</code> object for this locale. If there's no predefined rules for
          *         this locale, the rules for the closest parent in the locale hierarchy that has one will be returned.
          *         The final fallback always returns the default rules.
-         * @deprecated This API is ICU internal only.
          * @internal
+         * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public abstract PluralRules forLocale(ULocale locale, PluralType type);
 
         /**
          * Utility for getting CARDINAL rules.
          * @param locale the locale
          * @return plural rules.
-         * @deprecated This API is ICU internal only.
          * @internal
+         * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public final PluralRules forLocale(ULocale locale) {
             return forLocale(locale, PluralType.CARDINAL);
         }
@@ -226,9 +231,10 @@ public class PluralRules implements Serializable {
         /**
          * Returns the locales for which there is plurals data.
          * 
-         * @deprecated This API is ICU internal only.
          * @internal
+         * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public abstract ULocale[] getAvailableULocales();
 
         /**
@@ -244,25 +250,28 @@ public class PluralRules implements Serializable {
          *            if not null and of length > 0, this will hold 'true' at index 0 if locale is directly defined
          *            (without fallback) as having plural rules
          * @return the functionally-equivalent locale
-         * @deprecated This API is ICU internal only.
          * @internal
+         * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public abstract ULocale getFunctionalEquivalent(ULocale locale, boolean[] isAvailable);
 
         /**
          * Returns the default factory.
-         * @deprecated This API is ICU internal only.
          * @internal
+         * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public static PluralRulesLoader getDefaultFactory() {
             return PluralRulesLoader.loader;
         }
 
         /**
          * Returns whether or not there are overrides.
-         * @deprecated This API is ICU internal only.
          * @internal
+         * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public abstract boolean hasOverride(ULocale locale);
     }
     // Standard keywords.
@@ -396,7 +405,7 @@ public class PluralRules implements Serializable {
         t,
         v,
         w,
-        /**@deprecated*/
+        /* deprecated */
         j;
     }
 
@@ -404,47 +413,56 @@ public class PluralRules implements Serializable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static class FixedDecimal extends Number implements Comparable<FixedDecimal> {
         private static final long serialVersionUID = -4756200506571685661L;
         /**
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public final double source;
         /**
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public final int visibleDecimalDigitCount;
         /**
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public final int visibleDecimalDigitCountWithoutTrailingZeros;
         /**
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public final long decimalDigits;
         /**
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public final long decimalDigitsWithoutTrailingZeros;
         /**
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public final long integerValue;
         /**
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public final boolean hasIntegerValue;
         /**
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public final boolean isNegative;
         private final int baseFactor;
 
@@ -452,6 +470,7 @@ public class PluralRules implements Serializable {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public double getSource() {
             return source;
         }
@@ -460,6 +479,7 @@ public class PluralRules implements Serializable {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public int getVisibleDecimalDigitCount() {
             return visibleDecimalDigitCount;
         }
@@ -468,6 +488,7 @@ public class PluralRules implements Serializable {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public int getVisibleDecimalDigitCountWithoutTrailingZeros() {
             return visibleDecimalDigitCountWithoutTrailingZeros;
         }
@@ -476,6 +497,7 @@ public class PluralRules implements Serializable {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public long getDecimalDigits() {
             return decimalDigits;
         }
@@ -484,6 +506,7 @@ public class PluralRules implements Serializable {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public long getDecimalDigitsWithoutTrailingZeros() {
             return decimalDigitsWithoutTrailingZeros;
         }
@@ -492,6 +515,7 @@ public class PluralRules implements Serializable {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public long getIntegerValue() {
             return integerValue;
         }
@@ -500,6 +524,7 @@ public class PluralRules implements Serializable {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public boolean isHasIntegerValue() {
             return hasIntegerValue;
         }
@@ -508,6 +533,7 @@ public class PluralRules implements Serializable {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public boolean isNegative() {
             return isNegative;
         }
@@ -516,6 +542,7 @@ public class PluralRules implements Serializable {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public int getBaseFactor() {
             return baseFactor;
         }
@@ -528,6 +555,7 @@ public class PluralRules implements Serializable {
          * @param f Corresponds to f in the plural rules grammar.
          *   The digits to the right of the decimal place as an integer. e.g 1.10 = 10
          */
+        @Deprecated
         public FixedDecimal(double n, int v, long f) {
             isNegative = n < 0;
             source = isNegative ? -n : n;
@@ -568,6 +596,7 @@ public class PluralRules implements Serializable {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public FixedDecimal(double n, int v) {
             this(n,v,getFractionalDigits(n, v));
         }
@@ -586,6 +615,7 @@ public class PluralRules implements Serializable {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public FixedDecimal(double n) {
             this(n, decimals(n));
         }
@@ -594,6 +624,7 @@ public class PluralRules implements Serializable {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public FixedDecimal(long n) {
             this(n,0);
         }
@@ -602,6 +633,7 @@ public class PluralRules implements Serializable {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public static int decimals(double n) {
             // Ugly...
             String temp = String.valueOf(n);
@@ -612,6 +644,7 @@ public class PluralRules implements Serializable {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public FixedDecimal (String n) {
             // Ugly, but for samples we don't care.
             this(Double.parseDouble(n), getVisibleFractionCount(n));
@@ -631,6 +664,7 @@ public class PluralRules implements Serializable {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public double get(Operand operand) {
             switch(operand) {
             default: return source;
@@ -646,6 +680,7 @@ public class PluralRules implements Serializable {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public static Operand getOperand(String t) {
             return Operand.valueOf(t);
         }
@@ -655,6 +690,7 @@ public class PluralRules implements Serializable {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public int compareTo(FixedDecimal other) {
             if (integerValue != other.integerValue) {
                 return integerValue < other.integerValue ? -1 : 1;
@@ -676,6 +712,7 @@ public class PluralRules implements Serializable {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         @Override
         public boolean equals(Object arg0) {
             if (arg0 == null) {
@@ -695,6 +732,7 @@ public class PluralRules implements Serializable {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         @Override
         public int hashCode() {
             // TODO Auto-generated method stub
@@ -705,6 +743,7 @@ public class PluralRules implements Serializable {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         @Override
         public String toString() {
             return String.format("%." + visibleDecimalDigitCount + "f", source);
@@ -714,6 +753,7 @@ public class PluralRules implements Serializable {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public boolean hasIntegerValue() {
             return hasIntegerValue;
         }
@@ -722,6 +762,7 @@ public class PluralRules implements Serializable {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         @Override
         public int intValue() {
             // TODO Auto-generated method stub
@@ -732,6 +773,7 @@ public class PluralRules implements Serializable {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         @Override
         public long longValue() {
             return integerValue;
@@ -741,6 +783,7 @@ public class PluralRules implements Serializable {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         @Override
         public float floatValue() {
             return (float) source;
@@ -750,6 +793,7 @@ public class PluralRules implements Serializable {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         @Override
         public double doubleValue() {
             return source;
@@ -759,6 +803,7 @@ public class PluralRules implements Serializable {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public long getShiftedValue() {
             return integerValue * baseFactor + decimalDigits;
         }
@@ -780,16 +825,19 @@ public class PluralRules implements Serializable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public enum SampleType {
         /**
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         INTEGER,
         /**
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         DECIMAL
     }
 
@@ -798,21 +846,25 @@ public class PluralRules implements Serializable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static class FixedDecimalRange {
         /**
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public final FixedDecimal start;
         /**
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public final FixedDecimal end;
         /**
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public FixedDecimalRange(FixedDecimal start, FixedDecimal end) {
             if (start.visibleDecimalDigitCount != end.visibleDecimalDigitCount) {
                 throw new IllegalArgumentException("Ranges must have the same number of visible decimals: " + start + "~" + end);
@@ -824,6 +876,7 @@ public class PluralRules implements Serializable {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         @Override
         public String toString() {
             return start + (end == start ? "" : "~" + end);
@@ -835,21 +888,25 @@ public class PluralRules implements Serializable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static class FixedDecimalSamples {
         /**
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public final SampleType sampleType;
         /**
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public final Set<FixedDecimalRange> samples;
         /**
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public final boolean bounded;
         /**
          * The samples must be immutable.
@@ -919,6 +976,7 @@ public class PluralRules implements Serializable {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public Set<Double> addSamples(Set<Double> result) {
             for (FixedDecimalRange item : samples) {
                 // we have to convert to longs so we don't get strange double issues
@@ -936,6 +994,7 @@ public class PluralRules implements Serializable {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         @Override
         public String toString() {
             StringBuilder b = new StringBuilder("@").append(sampleType.toString().toLowerCase(Locale.ENGLISH));
@@ -958,6 +1017,7 @@ public class PluralRules implements Serializable {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public Set<FixedDecimalRange> getSamples() {
             return samples;
         }
@@ -966,6 +1026,7 @@ public class PluralRules implements Serializable {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public void getStartEndSamples(Set<FixedDecimal> target) {
             for (FixedDecimalRange item : samples) {
                 target.add(item.start);
@@ -1528,6 +1589,7 @@ public class PluralRules implements Serializable {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         @Override
         public int hashCode() {
             return keyword.hashCode() ^ constraint.hashCode();
@@ -1666,36 +1728,43 @@ public class PluralRules implements Serializable {
      * @deprecated This API is ICU internal only.
      * @internal
      */
+    @Deprecated
     public enum StandardPluralCategories {
         /**
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         zero,
         /**
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         one,
         /**
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         two,
         /**
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         few,
         /**
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         many,
         /**
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         other;
         static StandardPluralCategories forString(String s) {
             StandardPluralCategories a;
@@ -1793,6 +1862,7 @@ public class PluralRules implements Serializable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     @Override
     public int hashCode() {
         return rules.hashCode();
@@ -1818,6 +1888,7 @@ public class PluralRules implements Serializable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public String select(double number, int countVisibleFractionDigits, long fractionaldigits) {
         return rules.select(new FixedDecimal(number, countVisibleFractionDigits, fractionaldigits));
     }
@@ -1831,6 +1902,7 @@ public class PluralRules implements Serializable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public String select(FixedDecimal sample) {
         return rules.select(sample);
     }
@@ -1844,6 +1916,7 @@ public class PluralRules implements Serializable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public boolean matches(FixedDecimal sample, String keyword) {
         return rules.select(sample, keyword);
     }
@@ -1899,6 +1972,7 @@ public class PluralRules implements Serializable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public Collection<Double> getAllKeywordValues(String keyword, SampleType type) {
         if (!isLimited(keyword, type)) {
             return null;
@@ -1931,9 +2005,10 @@ public class PluralRules implements Serializable {
      *
      * @param keyword the keyword to test
      * @return a list of values matching the keyword.
+     * @internal
      * @deprecated ICU internal only
-     * @internal 
      */
+    @Deprecated
     public Collection<Double> getSamples(String keyword, SampleType sampleType) {
         if (!keywords.contains(keyword)) {
             return null;
@@ -1974,6 +2049,7 @@ public class PluralRules implements Serializable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public boolean addSample(String keyword, Number sample, int maxCount, Set<Double> result) {
         String selectedKeyword = sample instanceof FixedDecimal ? select((FixedDecimal)sample) : select(sample.doubleValue());
         if (selectedKeyword.equals(keyword)) {
@@ -1997,6 +2073,7 @@ public class PluralRules implements Serializable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public FixedDecimalSamples getDecimalSamples(String keyword, SampleType sampleType) {
         return rules.getDecimalSamples(keyword, sampleType);
     }
@@ -2194,6 +2271,7 @@ public class PluralRules implements Serializable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public String getRules(String keyword) {
         return rules.getRules(keyword);
     }
@@ -2217,6 +2295,7 @@ public class PluralRules implements Serializable {
      * @internal
      * @deprecated internal
      */
+    @Deprecated
     public int compareTo(PluralRules other) {
         return toString().compareTo(other.toString());
     }
@@ -2225,6 +2304,7 @@ public class PluralRules implements Serializable {
      * @internal
      * @deprecated internal
      */
+    @Deprecated
     public Boolean isLimited(String keyword) {
         return rules.isLimited(keyword, SampleType.INTEGER);
     }
@@ -2233,6 +2313,7 @@ public class PluralRules implements Serializable {
      * @internal
      * @deprecated internal
      */
+    @Deprecated
     public boolean isLimited(String keyword, SampleType sampleType) {
         return rules.isLimited(keyword, sampleType);
     }
@@ -2241,6 +2322,7 @@ public class PluralRules implements Serializable {
      * @internal
      * @deprecated internal
      */
+    @Deprecated
     public boolean computeLimited(String keyword, SampleType sampleType) {
         return rules.computeLimited(keyword, sampleType);
     }
index 6f1f00f97c11a6e0f0c5dcb263292a935f775596..a7ef98f7dc3c51747659b2953ecc4c3f7567072f 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *******************************************************************************
- * Copyright (C) 2013, International Business Machines Corporation and         *
+ * Copyright (C) 2013-2014, International Business Machines Corporation and    *
  * others. All Rights Reserved.                                                *
  *******************************************************************************
  */
@@ -31,6 +31,7 @@ import com.ibm.icu.util.Output;
  * @internal
  * @deprecated This API is ICU internal only.
  */
+@Deprecated
 public class PluralSamples {
 
     private PluralRules pluralRules;
@@ -40,6 +41,7 @@ public class PluralSamples {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public final Map<String, Boolean> _keyLimitedMap;
     private final Map<String, Set<FixedDecimal>> _keyFractionSamplesMap;
     private final Set<FixedDecimal> _fractionSamples;
@@ -48,6 +50,7 @@ public class PluralSamples {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public PluralSamples(PluralRules pluralRules) {
         this.pluralRules = pluralRules;
         Set<String> keywords = pluralRules.getKeywords();
@@ -249,6 +252,7 @@ public class PluralSamples {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public KeywordStatus getStatus(String keyword, int offset, Set<Double> explicits, Output<Double> uniqueValue) {
         if (uniqueValue != null) {
             uniqueValue.value = null;
index f77daa01f85ea79b6ad1531d3638f88132ed013f..9242f882c581610324ca5addd8c8d21ea00685de 100644 (file)
@@ -41,8 +41,7 @@ public class RuleBasedBreakIterator extends BreakIterator {
     //=======================================================================
     
     /** 
-     * @internal 
-     * @deprecated This API is ICU internal only.
+     * private constructor
      */
     private RuleBasedBreakIterator() {
         fLastStatusIndexValid = true;
@@ -188,9 +187,7 @@ public class RuleBasedBreakIterator extends BreakIterator {
     private CharacterIterator   fText = new java.text.StringCharacterIterator("");
     
     /**
-     * The rule data for this BreakIterator instance
-     * @internal
-     * @deprecated This API is ICU internal only.
+     * The rule data for this BreakIterator instance. Package private.
      */
     RBBIDataWrapper             fRData;
     
@@ -222,8 +219,6 @@ public class RuleBasedBreakIterator extends BreakIterator {
 
     /**
      * Debugging flag.  Trace operation of state machine when true.
-     * @internal
-     * @deprecated This API is ICU internal only.
      */
     private static final boolean TRACE = ICUDebug.enabled(RBBI_DEBUG_ARG)
             && ICUDebug.value(RBBI_DEBUG_ARG).indexOf("trace") >= 0;
@@ -275,6 +270,7 @@ public class RuleBasedBreakIterator extends BreakIterator {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public void dump() {
         this.fRData.dump();   
     }
@@ -1043,16 +1039,14 @@ public class RuleBasedBreakIterator extends BreakIterator {
     }
 
     /**
-     * @internal
-     * @deprecated This API is ICU internal only.
+     * package private
      */
     void setBreakType(int type) {
         fBreakType = type;
     }
 
     /**
-     * @internal
-     * @deprecated This API is ICU internal only.
+     * package private
      */
     int getBreakType() {
         return fBreakType;
index 63169d455b80779d16c2fea5267075a882741b1e..b6b638d5b387f00dd7e3512babd855b4c2a571c8 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *******************************************************************************
- * Copyright (C) 1996-2013, International Business Machines Corporation and    *
+ * Copyright (C) 1996-2014, International Business Machines Corporation and    *
  * others. All Rights Reserved.                                                *
  *******************************************************************************
  */
@@ -865,6 +865,7 @@ public class RuleBasedNumberFormat extends NumberFormat {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public int hashCode() {
         return super.hashCode();
     }
index 8eada3329b904cf9efafcdb48b9394d26a292a6d..ed784a3e76db8d3ff1b7e8a9f60bdc0463bcdc3c 100644 (file)
@@ -961,6 +961,7 @@ public class SimpleDateFormat extends DateFormat {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public SimpleDateFormat(String pattern, DateFormatSymbols formatData, ULocale loc)
     {
         this(pattern, (DateFormatSymbols)formatData.clone(), null, null, loc, true,null);
@@ -999,6 +1000,7 @@ public class SimpleDateFormat extends DateFormat {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static SimpleDateFormat getInstance(Calendar.FormatConfiguration formatConfig) {
 
         String ostr = formatConfig.getOverrideString();
@@ -1387,6 +1389,7 @@ public class SimpleDateFormat extends DateFormat {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected String subFormat(char ch, int count, int beginOffset,
                                int fieldNum, DisplayContext capitalizationContext,
                                FieldPosition pos,
@@ -1409,6 +1412,7 @@ public class SimpleDateFormat extends DateFormat {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     @SuppressWarnings("fallthrough")
     protected void subFormat(StringBuffer buf,
                              char ch, int count, int beginOffset,
@@ -1921,6 +1925,7 @@ public class SimpleDateFormat extends DateFormat {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected void zeroPaddingNumber(NumberFormat nf,StringBuffer buf, int value,
                                      int minDigits, int maxDigits) {
         // Note: Indian calendar uses negative value for a calendar
@@ -2517,6 +2522,7 @@ public class SimpleDateFormat extends DateFormat {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     private int matchString(String text, int start, int field, String[] data, String monthPattern, Calendar cal)
     {
         int i = 0;
@@ -2682,6 +2688,7 @@ public class SimpleDateFormat extends DateFormat {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     @SuppressWarnings("fallthrough")
     private int subParse(String text, int start, char ch, int count,
                            boolean obeyCount, boolean allowNegative,
@@ -3600,6 +3607,7 @@ public class SimpleDateFormat extends DateFormat {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public final StringBuffer intervalFormatByAlgorithm(Calendar fromCalendar,
                                                         Calendar toCalendar,
                                                         StringBuffer appendTo,
@@ -3836,6 +3844,7 @@ public class SimpleDateFormat extends DateFormat {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected NumberFormat getNumberFormat(char ch) {
 
        Character ovrField;
index 590907beef53c141dfffae92959f7a1f19535b21..b88e66f2c95798bae522b2e03aed0824e290d13b 100644 (file)
@@ -195,7 +195,9 @@ public class SpoofChecker {
      * Security Profile constant from UAX 31 for use in setAllowedChars.
      * Will probably be replaced by UnicodeSet property.
      * @internal
+     * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static final UnicodeSet INCLUSION = new UnicodeSet("[" +
             "\\u0027\\u002D-\\u002E\\u003A\\u00B7\\u0375\\u058A\\u05F3-\\u05F4"+
             "\\u06FD-\\u06FE\\u0F0B\\u200C-\\u200D\\u2010\\u2019\\u2027\\u30A0\\u30FB]").freeze();
@@ -205,7 +207,9 @@ public class SpoofChecker {
      * Security Profile constant from UAX 31 for use in setAllowedChars.
      * Will probably be replaced by UnicodeSet property.
      * @internal
+     * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static final UnicodeSet RECOMMENDED = new UnicodeSet("[" +
             "\\u0030-\\u0039\\u0041-\\u005A\\u005F\\u0061-\\u007A\\u00C0-\\u00D6\\u00D8-\\u00F6" + 
             "\\u00F8-\\u0131\\u0134-\\u013E\\u0141-\\u0148\\u014A-\\u017E\\u01A0-\\u01A1\\u01AF-\\u01B0" + 
@@ -321,16 +325,18 @@ public class SpoofChecker {
      * The default if this is not called is HIGHLY_RESTRICTIVE.
      *
      * @internal
+     * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static final int RESTRICTION_LEVEL = 16;
 
     /**
      * Check that an identifer contains only characters from a single script (plus chars from the common and inherited
      * scripts.) Applies to checks of a single identifier check only.
      *
-     * @stable ICU 4.6
-     * @deprecated Use RESTRICTION_LEVEL
+     * @deprecated ICU 51 Use RESTRICTION_LEVEL
      */
+    @Deprecated
     public static final int SINGLE_SCRIPT = RESTRICTION_LEVEL;
 
     /**
@@ -354,7 +360,9 @@ public class SpoofChecker {
      * Check that an identifier does not mix numbers.
      *
      * @internal
+     * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static final int MIXED_NUMBERS = 128;
 
     /**
@@ -599,7 +607,9 @@ public class SpoofChecker {
          * @param restrictionLevel The loosest restriction level allowed.
          * @return self
          * @internal
+         * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public Builder setRestrictionLevel(RestrictionLevel restrictionLevel) {
             fRestrictionLevel = restrictionLevel;
             fChecks |= RESTRICTION_LEVEL;
@@ -1399,7 +1409,9 @@ public class SpoofChecker {
      *
      * @return The restriction level
      * @internal
+     * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public RestrictionLevel getRestrictionLevel() {
         return fRestrictionLevel;
     }
@@ -1465,18 +1477,23 @@ public class SpoofChecker {
          *
          * @deprecated ICU 51. No longer supported. Always set to zero.
          */
+        @Deprecated
         public int position;
         /**
          * The numerics found in the string, if MIXED_NUMBERS was set; otherwise null;
          *
          * @internal
+         * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public UnicodeSet numerics;
         /**
          * The restriction level that the text meets, if RESTRICTION_LEVEL is set; otherwise null.
          *
          * @internal
+         * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public RestrictionLevel restrictionLevel;
 
         /**
@@ -1795,6 +1812,7 @@ public class SpoofChecker {
      *   @internal
      *   @deprecated This API is ICU internal only.
      */
+    @Deprecated
     @Override
     public boolean equals(Object other) {
         if (!(other instanceof SpoofChecker)) {return false; }
@@ -1826,6 +1844,7 @@ public class SpoofChecker {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     @Override
     public int hashCode() {
         assert false;   // To make sure ICU implementation does not depend on this.
index 00fa60f65bff38b8e8a89b29ce7c27ad4c16c746..007f5750c0e7c26d22f432dfc8836f0a31db92d9 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *******************************************************************************
- * Copyright (C) 1996-2006, International Business Machines Corporation and    *
+ * Copyright (C) 1996-2014, International Business Machines Corporation and    *
  * others. All Rights Reserved.                                                *
  *******************************************************************************
  */
@@ -24,6 +24,7 @@ import java.text.CharacterIterator;
  * @see CharacterIterator
  * @deprecated ICU 2.4. Use java.text.StringCharacterIterator instead.
  */
+@Deprecated
 ///CLOVER:OFF
 public final class StringCharacterIterator implements CharacterIterator
 {
@@ -37,6 +38,7 @@ public final class StringCharacterIterator implements CharacterIterator
      * Constructs an iterator with an initial index of 0.
      * @deprecated ICU 2.4. Use java.text.StringCharacterIterator instead.
      */
+    @Deprecated
     public StringCharacterIterator(String text)
     {
         this(text, 0);
@@ -49,6 +51,7 @@ public final class StringCharacterIterator implements CharacterIterator
      * @param  pos    Initial iterator position     
      * @deprecated ICU 2.4. Use java.text.StringCharacterIterator instead.
      */
+    @Deprecated
     public StringCharacterIterator(String text, int pos)
     {
     this(text, 0, text.length(), pos);
@@ -64,6 +67,7 @@ public final class StringCharacterIterator implements CharacterIterator
      * @param  pos    Initial iterator position 
      * @deprecated ICU 2.4. Use java.text.StringCharacterIterator instead.
      */
+    @Deprecated
     public StringCharacterIterator(String text, int begin, int end, int pos) {
         if (text == null) {
             throw new NullPointerException();
@@ -92,6 +96,7 @@ public final class StringCharacterIterator implements CharacterIterator
      * @param  text   The String to be iterated over 
      * @deprecated ICU 2.4. Use java.text.StringCharacterIterator instead.
      */
+    @Deprecated
     public void setText(String text) {
         if (text == null) {
             throw new NullPointerException();
@@ -107,6 +112,7 @@ public final class StringCharacterIterator implements CharacterIterator
      * @see CharacterIterator#first 
      * @deprecated ICU 2.4. Use java.text.StringCharacterIterator instead.
      */
+    @Deprecated
     public char first()
     {
         pos = begin;
@@ -118,6 +124,7 @@ public final class StringCharacterIterator implements CharacterIterator
      * @see CharacterIterator#last 
      * @deprecated ICU 2.4. Use java.text.StringCharacterIterator instead.
      */
+    @Deprecated
     public char last()
     {
         if (end != begin) {
@@ -133,6 +140,7 @@ public final class StringCharacterIterator implements CharacterIterator
      * @see CharacterIterator#setIndex 
      * @deprecated ICU 2.4. Use java.text.StringCharacterIterator instead.
      */
+    @Deprecated
     public char setIndex(int p)
     {
     if (p < begin || p > end) {
@@ -147,6 +155,7 @@ public final class StringCharacterIterator implements CharacterIterator
      * @see CharacterIterator#current 
      * @deprecated ICU 2.4. Use java.text.StringCharacterIterator instead.
      */
+    @Deprecated
     public char current()
     {
         if (pos >= begin && pos < end) {
@@ -162,6 +171,7 @@ public final class StringCharacterIterator implements CharacterIterator
      * @see CharacterIterator#next 
      * @deprecated ICU 2.4. Use java.text.StringCharacterIterator instead.
      */
+    @Deprecated
     public char next()
     {
         if (pos < end - 1) {
@@ -179,6 +189,7 @@ public final class StringCharacterIterator implements CharacterIterator
      * @see CharacterIterator#previous 
      * @deprecated ICU 2.4. Use java.text.StringCharacterIterator instead.
      */
+    @Deprecated
     public char previous()
     {
         if (pos > begin) {
@@ -195,6 +206,7 @@ public final class StringCharacterIterator implements CharacterIterator
      * @see CharacterIterator#getBeginIndex 
      * @deprecated ICU 2.4. Use java.text.StringCharacterIterator instead.
      */
+    @Deprecated
     public int getBeginIndex()
     {
         return begin;
@@ -205,6 +217,7 @@ public final class StringCharacterIterator implements CharacterIterator
      * @see CharacterIterator#getEndIndex 
      * @deprecated ICU 2.4. Use java.text.StringCharacterIterator instead.
      */
+    @Deprecated
     public int getEndIndex()
     {
         return end;
@@ -215,6 +228,7 @@ public final class StringCharacterIterator implements CharacterIterator
      * @see CharacterIterator#getIndex 
      * @deprecated ICU 2.4. Use java.text.StringCharacterIterator instead.
      */
+    @Deprecated
     public int getIndex()
     {
         return pos;
@@ -227,6 +241,7 @@ public final class StringCharacterIterator implements CharacterIterator
      * StringCharacterIterator object; false otherwise. 
      * @deprecated ICU 2.4. Use java.text.StringCharacterIterator instead.
      */
+    @Deprecated
     public boolean equals(Object obj)
     {
         if (this == obj) {
@@ -255,6 +270,7 @@ public final class StringCharacterIterator implements CharacterIterator
      * @return A hash code 
      * @deprecated ICU 2.4. Use java.text.StringCharacterIterator instead.
      */
+    @Deprecated
     public int hashCode()
     {
         return text.hashCode() ^ pos ^ begin ^ end;
index 33dff122dfdb7e9891880955479bb2eae67ce68d..a321b4138ea90d95c5aec6c9edd43cb6be9a66be 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *******************************************************************************
- * Copyright (C) 2003-2011, International Business Machines Corporation and    *
+ * Copyright (C) 2003-2014, International Business Machines Corporation and    *
  * others. All Rights Reserved.                                                *
  *******************************************************************************
  */
@@ -143,6 +143,7 @@ public class StringPrepParseException extends ParseException {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public int hashCode() {
         assert false : "hashCode not designed";
         return 42;
index d8a3ffded01ecd51b7913e0504bd2dac33a23acd..5ebaaba590b6cccbb77e1594f416d4dbd10dc176 100644 (file)
@@ -54,12 +54,12 @@ import com.ibm.icu.util.UResourceBundle;
  * </pre>
  *
  * <P>
- * @deprecated use {@link MeasureFormat} instead.
  * @see TimeUnitAmount
  * @see MeasureFormat
  * @author markdavis
- * @stable ICU 4.0
+ * @deprecated ICU 53 use {@link MeasureFormat} instead.
  */
+@Deprecated
 public class TimeUnitFormat extends MeasureFormat {
 
     /**
index a68da515bdd0148e74d5468c86d2460fa8429406..6fce6d130da814a8d2854a72c74c5d92b572f5e7 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *******************************************************************************
- * Copyright (C) 2013, International Business Machines Corporation and         *
+ * Copyright (C) 2013-2014, International Business Machines Corporation and    *
  * others. All Rights Reserved.                                                *
  *******************************************************************************
  */
@@ -14,6 +14,7 @@ import java.text.Format.Field;
  * @internal
  * @deprecated This API is ICU internal only.
  */
+@Deprecated
 public class UFieldPosition extends FieldPosition {
     private int countVisibleFractionDigits = -1;
     private long fractionDigits = 0;
@@ -22,6 +23,7 @@ public class UFieldPosition extends FieldPosition {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public UFieldPosition() {
         super(-1);
     }
@@ -30,6 +32,7 @@ public class UFieldPosition extends FieldPosition {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public UFieldPosition(int field) {
         super(field);
     }
@@ -38,6 +41,7 @@ public class UFieldPosition extends FieldPosition {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public UFieldPosition(Field attribute, int fieldID) {
         super(attribute, fieldID);
     }
@@ -46,6 +50,7 @@ public class UFieldPosition extends FieldPosition {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public UFieldPosition(Field attribute) {
         super(attribute);
     }
@@ -54,6 +59,7 @@ public class UFieldPosition extends FieldPosition {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public void setFractionDigits(int countVisibleFractionDigits, long fractionDigits ) {
         this.countVisibleFractionDigits = countVisibleFractionDigits;
         this.fractionDigits = fractionDigits;
@@ -63,6 +69,7 @@ public class UFieldPosition extends FieldPosition {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public int getCountVisibleFractionDigits() {
         return countVisibleFractionDigits;
     }
@@ -71,6 +78,7 @@ public class UFieldPosition extends FieldPosition {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public long getFractionDigits() {
         return fractionDigits;
     }
index 45600bab0f7763bc86819283dd474fa6f44a90da..b2022674b1a654fcc9e6e3849d9885d879bee831 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *******************************************************************************
- * Copyright (C) 1996-2011, International Business Machines Corporation and    *
+ * Copyright (C) 1996-2014, International Business Machines Corporation and    *
  * others. All Rights Reserved.                                                *
  *******************************************************************************
  */
@@ -66,5 +66,6 @@ public abstract class UnicodeFilter implements UnicodeMatcher {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected UnicodeFilter() {}
 }
index 2a431e8d620b1f809b09171002455cc052774537..bcab647c0aadc0ddc1dc4a7ac89fed763dad5071 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *******************************************************************************
- * Copyright (C) 1996-2013, International Business Machines Corporation and    *
+ * Copyright (C) 1996-2014, International Business Machines Corporation and    *
  * others. All Rights Reserved.                                                *
  *******************************************************************************
  */
@@ -971,6 +971,7 @@ public class UnicodeSet extends UnicodeFilter implements Iterable<String>, Compa
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public int matchesAt(CharSequence text, int offset) {
         int lastLen = -1;
         strings:
@@ -1947,6 +1948,7 @@ public class UnicodeSet extends UnicodeFilter implements Iterable<String>, Compa
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public String getRegexEquivalent() {
         if (strings.size() == 0) {
             return toString();
@@ -2327,6 +2329,7 @@ public class UnicodeSet extends UnicodeFilter implements Iterable<String>, Compa
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public UnicodeSet applyPattern(String pattern,
             ParsePosition pos,
             SymbolTable symbols,
@@ -4311,6 +4314,7 @@ public class UnicodeSet extends UnicodeFilter implements Iterable<String>, Compa
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static <T extends Comparable<T>> int compare(Iterator<T> first, Iterator<T> other) {
         while (true) {
             if (!first.hasNext()) {
@@ -4383,6 +4387,7 @@ public class UnicodeSet extends UnicodeFilter implements Iterable<String>, Compa
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static int getSingleCodePoint(CharSequence s) {
         return CharSequences.getSingleCodePoint(s);
     }
@@ -4396,6 +4401,7 @@ public class UnicodeSet extends UnicodeFilter implements Iterable<String>, Compa
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public UnicodeSet addBridges(UnicodeSet dontCare) {
         UnicodeSet notInInput = new UnicodeSet(this).complement();
         for (UnicodeSetIterator it = new UnicodeSetIterator(notInInput); it.nextRange();) {
@@ -4413,6 +4419,7 @@ public class UnicodeSet extends UnicodeFilter implements Iterable<String>, Compa
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public int findIn(CharSequence value, int fromIndex, boolean findNot) {
         //TODO add strings, optimize, using ICU4C algorithms
         int cp;
@@ -4433,6 +4440,7 @@ public class UnicodeSet extends UnicodeFilter implements Iterable<String>, Compa
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public int findLastIn(CharSequence value, int fromIndex, boolean findNot) {
         //TODO add strings, optimize, using ICU4C algorithms
         int cp;
@@ -4454,6 +4462,7 @@ public class UnicodeSet extends UnicodeFilter implements Iterable<String>, Compa
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public String stripFrom(CharSequence source, boolean matches) {
         StringBuilder result = new StringBuilder();
         for (int pos = 0; pos < source.length();) {
index 8c15206910ced0b3f4854a26ee6b4c3acfc8424b..25463b74a4739f339329be922801dadcbe77528d 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *******************************************************************************
- * Copyright (C) 1996-2010, International Business Machines Corporation and    *
+ * Copyright (C) 1996-2014, International Business Machines Corporation and    *
  * others. All Rights Reserved.                                                *
  *******************************************************************************
  */
@@ -235,6 +235,7 @@ public class UnicodeSetIterator {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public UnicodeSet getSet() {
         return set;
     }
@@ -243,11 +244,13 @@ public class UnicodeSetIterator {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected int endElement;
     /**
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected int nextElement;
     private Iterator<String> stringIterator = null;
     
@@ -259,6 +262,7 @@ public class UnicodeSetIterator {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected void loadRange(int aRange) {
         nextElement = set.getRangeStart(aRange);
         endElement = set.getRangeEnd(aRange);
index 4062f94f20046728c013171fb1996a541770d31d..a95954cbb463b6b41b6f651efb5a06f62f7de84e 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *******************************************************************************
- * Copyright (C) 2007-2011, International Business Machines Corporation and    *
+ * Copyright (C) 2007-2014, International Business Machines Corporation and    *
  * others. All Rights Reserved.                                                *
  *******************************************************************************
  */
@@ -539,6 +539,7 @@ public abstract class BasicTimeZone extends TimeZone {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static final int LOCAL_STD = 0x01;
 
     /**
@@ -547,6 +548,7 @@ public abstract class BasicTimeZone extends TimeZone {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static final int LOCAL_DST = 0x03;
 
     /**
@@ -555,6 +557,7 @@ public abstract class BasicTimeZone extends TimeZone {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static final int LOCAL_FORMER = 0x04;
 
     /**
@@ -563,6 +566,7 @@ public abstract class BasicTimeZone extends TimeZone {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static final int LOCAL_LATTER = 0x0C;
 
     /**
@@ -571,6 +575,7 @@ public abstract class BasicTimeZone extends TimeZone {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected static final int STD_DST_MASK = 0x03;
 
     /**
@@ -579,6 +584,7 @@ public abstract class BasicTimeZone extends TimeZone {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected static final int FORMER_LATTER_MASK = 0x0C;
 
     /**
@@ -586,6 +592,7 @@ public abstract class BasicTimeZone extends TimeZone {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public void getOffsetFromLocal(long date,
             int nonExistingTimeOpt, int duplicatedTimeOpt, int[] offsets) {
         throw new IllegalStateException("Not implemented");
@@ -604,6 +611,7 @@ public abstract class BasicTimeZone extends TimeZone {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected BasicTimeZone(String ID) {
         super(ID);
     }
index 9e169c29bde7ac55839002a352f49cd3a4c41c6b..45718ada5eb660f14225f2364670dcd9130bf9ac 100644 (file)
@@ -1,6 +1,6 @@
 /*
 *******************************************************************************
-*   Copyright (C) 2011-2013, International Business Machines
+*   Copyright (C) 2011-2014, International Business Machines
 *   Corporation and others.  All Rights Reserved.
 *******************************************************************************
 *   created on: 2011jan05
@@ -127,6 +127,7 @@ public final class BytesTrieBuilder extends StringTrieBuilder {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     @Override
     protected boolean matchNodesCanHaveValues() /*const*/ { return false; }
 
@@ -135,6 +136,7 @@ public final class BytesTrieBuilder extends StringTrieBuilder {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     @Override
     protected int getMaxBranchLinearSubNodeLength() /*const*/ { return BytesTrie.kMaxBranchLinearSubNodeLength; }
     /**
@@ -142,6 +144,7 @@ public final class BytesTrieBuilder extends StringTrieBuilder {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     @Override
     protected int getMinLinearMatch() /*const*/ { return BytesTrie.kMinLinearMatch; }
     /**
@@ -149,6 +152,7 @@ public final class BytesTrieBuilder extends StringTrieBuilder {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     @Override
     protected int getMaxLinearMatchLength() /*const*/ { return BytesTrie.kMaxLinearMatchLength; }
 
@@ -169,6 +173,7 @@ public final class BytesTrieBuilder extends StringTrieBuilder {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     @Override
     protected int write(int b) {
         int newLength=bytesLength+1;
@@ -182,6 +187,7 @@ public final class BytesTrieBuilder extends StringTrieBuilder {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     @Override
     protected int write(int offset, int length) {
         int newLength=bytesLength+length;
@@ -210,6 +216,7 @@ public final class BytesTrieBuilder extends StringTrieBuilder {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     @Override
     protected int writeValueAndFinal(int i, boolean isFinal) {
         if(0<=i && i<=BytesTrie.kMaxOneByteValue) {
@@ -248,6 +255,7 @@ public final class BytesTrieBuilder extends StringTrieBuilder {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     @Override
     protected int writeValueAndType(boolean hasValue, int value, int node) {
         int offset=write(node);
@@ -261,6 +269,7 @@ public final class BytesTrieBuilder extends StringTrieBuilder {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     @Override
     protected int writeDeltaTo(int jumpTarget) {
         int i=bytesLength-jumpTarget;
index 58df511e56d71834085011495084d692bcb1df07..8a6b3df4f336c579e4839be6c3b03c78a9a37fca 100644 (file)
@@ -3474,6 +3474,7 @@ public abstract class Calendar implements Serializable, Cloneable, Comparable<Ca
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static String getDateTimePattern(Calendar cal, ULocale uLocale, int dateStyle) {
         PatternData patternData = PatternData.make(cal, uLocale);
         return patternData.getDateTimePattern(dateStyle);
@@ -3541,6 +3542,7 @@ public abstract class Calendar implements Serializable, Cloneable, Comparable<Ca
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static class FormatConfiguration {
         private String pattern;
         private String override;
@@ -3558,6 +3560,7 @@ public abstract class Calendar implements Serializable, Cloneable, Comparable<Ca
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public String getPatternString() {
             return pattern;
         }
@@ -3566,6 +3569,7 @@ public abstract class Calendar implements Serializable, Cloneable, Comparable<Ca
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public String getOverrideString() {
             return override;
         }
@@ -3576,6 +3580,7 @@ public abstract class Calendar implements Serializable, Cloneable, Comparable<Ca
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public Calendar getCalendar() {
             return cal;
         }
@@ -3586,6 +3591,7 @@ public abstract class Calendar implements Serializable, Cloneable, Comparable<Ca
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public ULocale getLocale() {
             return loc;
         }
@@ -3596,6 +3602,7 @@ public abstract class Calendar implements Serializable, Cloneable, Comparable<Ca
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public DateFormatSymbols getDateFormatSymbols() {
             return formatData;
         }
@@ -6021,6 +6028,7 @@ public abstract class Calendar implements Serializable, Cloneable, Comparable<Ca
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public boolean haveDefaultCentury() {
         return true;
     }
index 70c46475a462a61f4d1ba81052eadf99f3072f68..66a4f552c36c1083fe50245dfac078f19cf51318 100644 (file)
@@ -1,6 +1,6 @@
 /*
 *******************************************************************************
-*   Copyright (C) 2011-2013, International Business Machines
+*   Copyright (C) 2011-2014, International Business Machines
 *   Corporation and others.  All Rights Reserved.
 *******************************************************************************
 *   created on: 2011jan07
@@ -105,6 +105,7 @@ public final class CharsTrieBuilder extends StringTrieBuilder {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     @Override
     protected boolean matchNodesCanHaveValues() /*const*/ { return true; }
 
@@ -113,6 +114,7 @@ public final class CharsTrieBuilder extends StringTrieBuilder {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     @Override
     protected int getMaxBranchLinearSubNodeLength() /*const*/ { return CharsTrie.kMaxBranchLinearSubNodeLength; }
     /**
@@ -120,6 +122,7 @@ public final class CharsTrieBuilder extends StringTrieBuilder {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     @Override
     protected int getMinLinearMatch() /*const*/ { return CharsTrie.kMinLinearMatch; }
     /**
@@ -127,6 +130,7 @@ public final class CharsTrieBuilder extends StringTrieBuilder {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     @Override
     protected int getMaxLinearMatchLength() /*const*/ { return CharsTrie.kMaxLinearMatchLength; }
 
@@ -147,6 +151,7 @@ public final class CharsTrieBuilder extends StringTrieBuilder {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     @Override
     protected int write(int unit) {
         int newLength=charsLength+1;
@@ -160,6 +165,7 @@ public final class CharsTrieBuilder extends StringTrieBuilder {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     @Override
     protected int write(int offset, int length) {
         int newLength=charsLength+length;
@@ -188,6 +194,7 @@ public final class CharsTrieBuilder extends StringTrieBuilder {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     @Override
     protected int writeValueAndFinal(int i, boolean isFinal) {
         if(0<=i && i<=CharsTrie.kMaxOneUnitValue) {
@@ -215,6 +222,7 @@ public final class CharsTrieBuilder extends StringTrieBuilder {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     @Override
     protected int writeValueAndType(boolean hasValue, int value, int node) {
         if(!hasValue) {
@@ -242,6 +250,7 @@ public final class CharsTrieBuilder extends StringTrieBuilder {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     @Override
     protected int writeDeltaTo(int jumpTarget) {
         int i=charsLength-jumpTarget;
index 6c69e6d785eb215cbca585b5fbfa0939224e9455..09dac8f01fd742535128b3d20ce37a55d1e85893 100644 (file)
@@ -336,6 +336,7 @@ public class ChineseCalendar extends Calendar {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected ChineseCalendar(TimeZone zone, ULocale locale, int epochYear, TimeZone zoneAstroCalc) {
         super(zone, locale);
         this.epochYear = epochYear;
@@ -1022,6 +1023,7 @@ public class ChineseCalendar extends Calendar {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public boolean haveDefaultCentury() {
         return false;
     }
index 926a1fa1e6bc9147be189250cd89345c0c6112d2..75b73d5a8d45087e210ebc8c0de897ebf0d3af1a 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *******************************************************************************
- * Copyright (C) 1996-2009, International Business Machines Corporation and    *
+ * Copyright (C) 1996-2014, International Business Machines Corporation and    *
  * others. All Rights Reserved.                                                *
  *******************************************************************************
  */
@@ -29,6 +29,7 @@ import com.ibm.icu.impl.Utility;
  * @internal
  * @deprecated This API is ICU internal only.
  */
+@Deprecated
 public final class CompactByteArray implements Cloneable {
 
     /**
@@ -36,6 +37,7 @@ public final class CompactByteArray implements Cloneable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static  final int UNICODECOUNT =65536;
 
     /**
@@ -44,6 +46,7 @@ public final class CompactByteArray implements Cloneable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public CompactByteArray()
     {
         this((byte)0);
@@ -55,6 +58,7 @@ public final class CompactByteArray implements Cloneable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public CompactByteArray(byte defaultValue)
     {
         int i;
@@ -81,6 +85,7 @@ public final class CompactByteArray implements Cloneable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public CompactByteArray(char indexArray[],
                             byte newValues[])
     {
@@ -108,6 +113,7 @@ public final class CompactByteArray implements Cloneable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public CompactByteArray(String indexArray,
                             String valueArray)
     {
@@ -122,6 +128,7 @@ public final class CompactByteArray implements Cloneable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public byte elementAt(char index)
     {
         return (values[(indices[index >> BLOCKSHIFT] & 0xFFFF)
@@ -136,6 +143,7 @@ public final class CompactByteArray implements Cloneable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public void setElementAt(char index, byte value)
     {
         if (isCompact)
@@ -153,6 +161,7 @@ public final class CompactByteArray implements Cloneable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public void setElementAt(char start, char end, byte value)
     {
         int i;
@@ -169,6 +178,7 @@ public final class CompactByteArray implements Cloneable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public void compact() {
         compact(false);
     }
@@ -178,6 +188,7 @@ public final class CompactByteArray implements Cloneable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public void compact(boolean exhaustive)
     {
         if (!isCompact) {
@@ -271,6 +282,7 @@ public final class CompactByteArray implements Cloneable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public char[] getIndexArray()
     {
         return indices;
@@ -282,6 +294,7 @@ public final class CompactByteArray implements Cloneable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public byte[] getValueArray()
     {
         return values;
@@ -292,6 +305,7 @@ public final class CompactByteArray implements Cloneable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public Object clone()
     {
         try {
@@ -313,6 +327,7 @@ public final class CompactByteArray implements Cloneable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public boolean equals(Object obj) {
         if (obj == null) return false;
         if (this == obj)                      // quick check
@@ -333,6 +348,7 @@ public final class CompactByteArray implements Cloneable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public int hashCode() {
         int result = 0;
         int increment = Math.min(3, values.length/16);
index 62a07325179e709fdae4895baf319d88d112450a..e177eefbafde0cd7c84159cd20a4da699aaf6d43 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *******************************************************************************
- * Copyright (C) 1996-2009, International Business Machines Corporation and    *
+ * Copyright (C) 1996-2014, International Business Machines Corporation and    *
  * others. All Rights Reserved.                                                *
  *******************************************************************************
  */
@@ -30,6 +30,7 @@ import com.ibm.icu.impl.Utility;
  * @internal
  * @deprecated This API is ICU internal only.
  */
+@Deprecated
 public final class CompactCharArray implements Cloneable {
 
     /**
@@ -37,6 +38,7 @@ public final class CompactCharArray implements Cloneable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static  final int UNICODECOUNT = 65536;
 
     /**
@@ -45,6 +47,7 @@ public final class CompactCharArray implements Cloneable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public CompactCharArray()
     {
         this((char)0);
@@ -56,6 +59,7 @@ public final class CompactCharArray implements Cloneable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public CompactCharArray(char defaultValue)
     {
         int i;
@@ -82,6 +86,7 @@ public final class CompactCharArray implements Cloneable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public CompactCharArray(char indexArray[],
                              char newValues[])
     {
@@ -109,6 +114,7 @@ public final class CompactCharArray implements Cloneable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public CompactCharArray(String indexArray,
                 String valueArray)
     {
@@ -123,6 +129,7 @@ public final class CompactCharArray implements Cloneable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public char elementAt(char index)
     {
     int ix = (indices[index >> BLOCKSHIFT] & 0xFFFF)
@@ -138,6 +145,7 @@ public final class CompactCharArray implements Cloneable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public void setElementAt(char index, char value)
     {
         if (isCompact)
@@ -155,6 +163,7 @@ public final class CompactCharArray implements Cloneable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public void setElementAt(char start, char end, char value)
     {
         int i;
@@ -171,6 +180,7 @@ public final class CompactCharArray implements Cloneable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public void compact() {
         compact(true);
     }
@@ -180,6 +190,7 @@ public final class CompactCharArray implements Cloneable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public void compact(boolean exhaustive)
     {
         if (!isCompact) {
@@ -295,6 +306,7 @@ public final class CompactCharArray implements Cloneable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public char[] getIndexArray()
     {
         return indices;
@@ -306,6 +318,7 @@ public final class CompactCharArray implements Cloneable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public char[] getValueArray()
     {
         return values;
@@ -316,6 +329,7 @@ public final class CompactCharArray implements Cloneable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public Object clone()
     {
         try {
@@ -337,6 +351,7 @@ public final class CompactCharArray implements Cloneable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public boolean equals(Object obj) {
         if (obj == null) return false;
         if (this == obj)                      // quick check
@@ -357,6 +372,7 @@ public final class CompactCharArray implements Cloneable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public int hashCode() {
         int result = 0;
         int increment = Math.min(3, values.length/16);
@@ -396,6 +412,7 @@ public final class CompactCharArray implements Cloneable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static  final int BLOCKSHIFT = 5; // NormalizerBuilder needs - liu
     static  final int BLOCKCOUNT =(1<<BLOCKSHIFT);
     static  final int INDEXSHIFT =(16-BLOCKSHIFT);
index b1db47c3b3e345f2c501a0097fff5b632153d8c9..804f5b13cbbeaca39be4951b72095430d77f69e4 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *******************************************************************************
- * Copyright (C) 2005-2008, International Business Machines Corporation and    *
+ * Copyright (C) 2005-2014, International Business Machines Corporation and    *
  * others. All Rights Reserved.                                                *
  *******************************************************************************
  */
@@ -246,6 +246,7 @@ public final class CopticCalendar extends CECalendar
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected int handleGetExtendedYear() {
         int eyear;
         if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) {
@@ -267,6 +268,7 @@ public final class CopticCalendar extends CECalendar
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected void handleComputeFields(int julianDay) {
         int era, year;
         int[] fields = new int[3];
@@ -297,6 +299,7 @@ public final class CopticCalendar extends CECalendar
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected int getJDEpochOffset() {
         return JD_EPOCH_OFFSET;
     }
index bc331b39daedc9add9a9949e4d6f1f4f3a096bf9..6ae06aecf025e4b1aed49f285f58f1ba8d89a922 100644 (file)
@@ -1,6 +1,6 @@
 /**
  *******************************************************************************
- * Copyright (C) 2001-2013, International Business Machines Corporation and    *
+ * Copyright (C) 2001-2014, International Business Machines Corporation and    *
  * others. All Rights Reserved.                                                *
  *******************************************************************************
  */
@@ -611,6 +611,7 @@ public class Currency extends MeasureUnit {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static String parse(ULocale locale, String text, int type, ParsePosition pos) {
         List<TextTrieMap<CurrencyStringInfo>> currencyTrieVec = CURRENCY_NAME_CACHE.get(locale);
         if (currencyTrieVec == null) {
index 556b302a2c48f66ef4fe816001ef4754ca715bca..0b7c39882d33c9f8e54b5d0845e18f516bc5a68e 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *******************************************************************************
- * Copyright (C) 2012, International Business Machines Corporation and         *
+ * Copyright (C) 2012-2014, International Business Machines Corporation and    *
  * others. All Rights Reserved.                                                *
  *******************************************************************************
  */
@@ -17,6 +17,7 @@ import com.ibm.icu.util.ULocale.Category;
  * @internal
  * @deprecated This API is ICU internal only.
  */
+@Deprecated
 public class DangiCalendar extends ChineseCalendar {
 
     private static final long serialVersionUID = 8156297445349501985L;
@@ -83,6 +84,7 @@ public class DangiCalendar extends ChineseCalendar {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public DangiCalendar() {
         this(TimeZone.getDefault(), ULocale.getDefault(Category.FORMAT));
     }
@@ -95,6 +97,7 @@ public class DangiCalendar extends ChineseCalendar {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public DangiCalendar(Date date) {
         this(TimeZone.getDefault(), ULocale.getDefault(Category.FORMAT));
         setTime(date);
@@ -109,6 +112,7 @@ public class DangiCalendar extends ChineseCalendar {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public DangiCalendar(TimeZone zone, ULocale locale) {
         super(zone, locale, DANGI_EPOCH_YEAR, KOREA_ZONE);
     }
@@ -119,6 +123,7 @@ public class DangiCalendar extends ChineseCalendar {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public String getType() {
         return "dangi";
     }
index 3e18a4a4ef097fcf73c309fef3be1ffe65eda2f9..72ea37a21b85e1831f3ceff73ac7b1907ff5ee44 100644 (file)
@@ -294,6 +294,7 @@ public final class EthiopicCalendar extends CECalendar
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected int handleGetExtendedYear() {
         // Ethiopic calendar uses EXTENDED_YEAR aligned to
         // Amelete Mihret year always.
@@ -320,6 +321,7 @@ public final class EthiopicCalendar extends CECalendar
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected void handleComputeFields(int julianDay) {
         int era, year;
         int[] fields = new int[3];
@@ -355,6 +357,7 @@ public final class EthiopicCalendar extends CECalendar
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected int handleGetLimit(int field, int limitType) {
         if (isAmeteAlemEra() && field == ERA) {
             return 0; // Only one era in this mode, era is always 0
@@ -367,6 +370,7 @@ public final class EthiopicCalendar extends CECalendar
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected int getJDEpochOffset() {
         return JD_EPOCH_OFFSET_AMETE_MIHRET;
     }
index d064f7bf010b4980732d1f6736cc43f0311c0f31..c141141c50a1c0ee0afd5e950ebfcc91bbdc668a 100644 (file)
@@ -23,6 +23,7 @@ import com.ibm.icu.impl.SimpleCache;
  * @internal
  * @deprecated This API is ICU internal only.
  */
+@Deprecated
 public class GenderInfo {
 
     private final ListGenderStyle style; // set based on locale
@@ -32,21 +33,25 @@ public class GenderInfo {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public enum Gender {
         /**
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         MALE,
         /**
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         FEMALE,
         /**
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         OTHER
     }
 
@@ -56,6 +61,7 @@ public class GenderInfo {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static GenderInfo getInstance(ULocale uLocale) {
         return genderInfoCache.get(uLocale);
     }
@@ -66,6 +72,7 @@ public class GenderInfo {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static GenderInfo getInstance(Locale locale) {
         return getInstance(ULocale.forLocale(locale));
     }
@@ -77,6 +84,7 @@ public class GenderInfo {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public enum ListGenderStyle {
         /**
          * For an empty list, returns OTHER;
@@ -85,6 +93,7 @@ public class GenderInfo {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         NEUTRAL,
         /**
          * For an empty list, returns OTHER;
@@ -94,6 +103,7 @@ public class GenderInfo {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         MIXED_NEUTRAL,
         /**
          * For an empty list, returns OTHER;
@@ -103,6 +113,7 @@ public class GenderInfo {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         MALE_TAINTS;
 
         private static Map<String, ListGenderStyle> fromNameMap =
@@ -118,6 +129,7 @@ public class GenderInfo {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public static ListGenderStyle fromName(String name) {
             ListGenderStyle result = fromNameMap.get(name);
             if (result == null) {
@@ -134,6 +146,7 @@ public class GenderInfo {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public Gender getListGender(Gender... genders) {
         return getListGender(Arrays.asList(genders));
     }
@@ -145,6 +158,7 @@ public class GenderInfo {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public Gender getListGender(List<Gender> genders) {
         if (genders.size() == 0) {
             return Gender.OTHER; // degenerate case
@@ -196,6 +210,7 @@ public class GenderInfo {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public GenderInfo(ListGenderStyle genderStyle) {
         style = genderStyle;
     }
index 6d7bf47cde4c70f8ad88b738d4722e2867e97b72..1e5b124edf97c4985ce3e93ab22ff5a37c674f74 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *******************************************************************************
- * Copyright (C) 1996-2013, International Business Machines Corporation and
+ * Copyright (C) 1996-2014, International Business Machines Corporation and
  * others. All Rights Reserved.
  *******************************************************************************
  */
@@ -686,6 +686,7 @@ public class HebrewCalendar extends Calendar {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static boolean isLeapYear(int year) {
         //return (year * 12 + 17) % 19 >= 12;
         int x = (year*12 + 17) % 19;
index f88fed9e98ab989f7a9c925dd8e2c781dd0d2aa0..a66ba0d3699f08c51e0e3ca96ec28794059820f5 100644 (file)
@@ -641,6 +641,7 @@ public class JapaneseCalendar extends GregorianCalendar {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public boolean haveDefaultCentury() {
         return false;
     }
index d3de18a716aebbfed0d9f9c2e454ce413dc7f751..b9930f202767791853e9dea42bfdb5aafaa94ddc 100644 (file)
@@ -1,6 +1,6 @@
 /*
  **************************************************************************************
- * Copyright (C) 2009-2013, Google, Inc.; International Business Machines Corporation *
+ * Copyright (C) 2009-2014, Google, Inc.; International Business Machines Corporation *
  * and others. All Rights Reserved.                                                   *
  **************************************************************************************
  */
@@ -52,6 +52,7 @@ public final class LocaleData {
     * Note: This type is no longer supported.
     * @deprecated ICU 51
     */
+    @Deprecated
     public static final int ES_CURRENCY = 3;
 
     /**
index c9a6d239e86d4423d2f8656a823b94fe6d0dcbc1..e94762ca706aa715070469b19987b0640e223d92 100644 (file)
@@ -98,6 +98,7 @@ public class LocaleMatcher {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public LocaleMatcher(LocalePriorityList languagePriorityList, LanguageMatcherData matcherData) {
         this(languagePriorityList, matcherData, DEFAULT_THRESHOLD);
     }
@@ -109,6 +110,7 @@ public class LocaleMatcher {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public LocaleMatcher(LocalePriorityList languagePriorityList, LanguageMatcherData matcherData, double threshold) {
         this.matcherData = matcherData;
         for (final ULocale language : languagePriorityList) {
@@ -213,6 +215,7 @@ public class LocaleMatcher {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public ULocale getBestMatch(ULocale... ulocales) {
         return getBestMatch(LocalePriorityList.add(ulocales).build());
     }
@@ -546,6 +549,7 @@ public class LocaleMatcher {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static class LanguageMatcherData implements Freezable<LanguageMatcherData> {
         ScoreData languageScores = new ScoreData(Level.language);
         ScoreData scriptScores = new ScoreData(Level.script);
@@ -555,6 +559,7 @@ public class LocaleMatcher {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public LanguageMatcherData() {
         }
 
@@ -562,6 +567,7 @@ public class LocaleMatcher {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public String toString() {
             return languageScores + "\n\t" + scriptScores + "\n\t" + regionScores;
         }
@@ -570,6 +576,7 @@ public class LocaleMatcher {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public double match(ULocale a, ULocale aMax, ULocale b, ULocale bMax) {
             double diff = 0;
             diff += languageScores.getScore(a, aMax, a.getLanguage(), aMax.getLanguage(), b, bMax, b.getLanguage(), bMax.getLanguage());
@@ -600,6 +607,7 @@ public class LocaleMatcher {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         private LanguageMatcherData addDistance(String desired, String supported, int percent) {
             return addDistance(desired, supported, percent, false, null);
         }
@@ -607,6 +615,7 @@ public class LocaleMatcher {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public LanguageMatcherData addDistance(String desired, String supported, int percent, String comment) {
             return addDistance(desired, supported, percent, false, comment);
         }
@@ -614,6 +623,7 @@ public class LocaleMatcher {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public LanguageMatcherData addDistance(String desired, String supported, int percent, boolean oneway) {
             return addDistance(desired, supported, percent, oneway, null);
         }
@@ -680,6 +690,7 @@ public class LocaleMatcher {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public LanguageMatcherData cloneAsThawed() {
             LanguageMatcherData result;
             try {
@@ -701,6 +712,7 @@ public class LocaleMatcher {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public LanguageMatcherData freeze() {
             return this;
         }
@@ -710,6 +722,7 @@ public class LocaleMatcher {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public boolean isFrozen() {
             return frozen;
         }
@@ -847,6 +860,7 @@ public class LocaleMatcher {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static ICUResourceBundle getICUSupplementalData() {
         ICUResourceBundle suppData = (ICUResourceBundle) UResourceBundle.getBundleInstance(
                 ICUResourceBundle.ICU_BASE_NAME,
@@ -859,6 +873,7 @@ public class LocaleMatcher {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static double match(ULocale a, ULocale b) {
         final LocaleMatcher matcher = new LocaleMatcher("");
         return matcher.match(a, matcher.addLikelySubtags(a), b, matcher.addLikelySubtags(b));
index abddb668190df7e1ce0346d5f5827c0d75fa1924..6510680125eaf6ce533bd318f9c9444157171ca4 100644 (file)
@@ -46,18 +46,21 @@ public class MeasureUnit implements Serializable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected final String type;
     
     /**
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected final String subType;
     
     /**
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected MeasureUnit(String type, String subType) {
         this.type = type;
         this.subType = subType;
@@ -173,6 +176,7 @@ public class MeasureUnit implements Serializable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static MeasureUnit internalGetInstance(String type, String subType) {
         if (type == null || subType == null) {
             throw new NullPointerException("Type and subType must be non-null");
@@ -200,11 +204,13 @@ public class MeasureUnit implements Serializable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected interface Factory {
         /**
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         MeasureUnit create(String type, String subType);
     }
 
@@ -276,6 +282,7 @@ public class MeasureUnit implements Serializable {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected synchronized static MeasureUnit addUnit(String type, String unitName, Factory factory) {
         Map<String, MeasureUnit> tmp = cache.get(type);
         if (tmp == null) {
index 319c7527d16de9303f9b39c79134c996913f5c87..745fc792a7feaf82485cc9eb14f16a8b985f207b 100644 (file)
@@ -1,6 +1,6 @@
 /**
  *******************************************************************************
- * Copyright (C) 2001-2009, International Business Machines Corporation and    *
+ * Copyright (C) 2001-2014, International Business Machines Corporation and    *
  * others. All Rights Reserved.                                                *
  *******************************************************************************
  */
@@ -62,6 +62,7 @@ import java.util.ResourceBundle;
  * @internal
  * @deprecated ICU 2.4. This class may be removed or modified.
  */
+@Deprecated
 // prepare to deprecate in next release
 ///CLOVER:OFF
 public class OverlayBundle extends ResourceBundle {
@@ -89,6 +90,7 @@ public class OverlayBundle extends ResourceBundle {
      * @internal
      * @deprecated ICU 2.4. This class may be removed or modified.
      */
+    @Deprecated
     public OverlayBundle(String[] baseNames,
                          Locale locale) {
         this.baseNames = baseNames;
@@ -101,8 +103,9 @@ public class OverlayBundle extends ResourceBundle {
      * bundles[i].getObject().
      * @internal
      * @deprecated ICU 2.4. This class may be removed or modified.
-     */ 
-   protected Object handleGetObject(String key) 
+     */
+    @Deprecated
+    protected Object handleGetObject(String key) 
         throws MissingResourceException {
 
         Object o = null;
@@ -130,6 +133,7 @@ public class OverlayBundle extends ResourceBundle {
      * @internal
      * @deprecated ICU 2.4. This class may be removed or modified.
      */
+    @Deprecated
     public Enumeration<String> getKeys() {
         // Return the enumeration of the last bundle, which is the base
         // of our hierarchy stack.
index fb46c19ff37fcee97ec86856091e253d6d85f843..54255bf1575f55386961196146bc31f6f71e1a76 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *******************************************************************************
- * Copyright (C) 1996-2012, International Business Machines Corporation and    *
+ * Copyright (C) 1996-2014, International Business Machines Corporation and    *
  * others. All Rights Reserved.                                                *
  *******************************************************************************
  */
@@ -62,6 +62,7 @@ import com.ibm.icu.util.ULocale.Category;
  * @internal
  * @deprecated This API is ICU internal only.
  */
+@Deprecated
 public class PersianCalendar extends Calendar {
     private static final long serialVersionUID = -6727306982975111643L;
 
@@ -102,6 +103,7 @@ public class PersianCalendar extends Calendar {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public PersianCalendar()
     {
         this(TimeZone.getDefault(), ULocale.getDefault(Category.FORMAT));
@@ -116,6 +118,7 @@ public class PersianCalendar extends Calendar {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public PersianCalendar(TimeZone zone)
     {
         this(zone, ULocale.getDefault(Category.FORMAT));
@@ -130,6 +133,7 @@ public class PersianCalendar extends Calendar {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public PersianCalendar(Locale aLocale)
     {
         this(TimeZone.getDefault(), aLocale);
@@ -144,6 +148,7 @@ public class PersianCalendar extends Calendar {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public PersianCalendar(ULocale locale)
     {
         this(TimeZone.getDefault(), locale);
@@ -159,6 +164,7 @@ public class PersianCalendar extends Calendar {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public PersianCalendar(TimeZone zone, Locale aLocale)
     {
         super(zone, aLocale);
@@ -175,6 +181,7 @@ public class PersianCalendar extends Calendar {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public PersianCalendar(TimeZone zone, ULocale locale)
     {
         super(zone, locale);
@@ -191,6 +198,7 @@ public class PersianCalendar extends Calendar {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public PersianCalendar(Date date) {
         super(TimeZone.getDefault(), ULocale.getDefault(Category.FORMAT));
         this.setTime(date);
@@ -209,6 +217,7 @@ public class PersianCalendar extends Calendar {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public PersianCalendar(int year, int month, int date)
     {
         super(TimeZone.getDefault(), ULocale.getDefault(Category.FORMAT));
@@ -236,6 +245,7 @@ public class PersianCalendar extends Calendar {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public PersianCalendar(int year, int month, int date, int hour,
                            int minute, int second)
     {
@@ -283,6 +293,7 @@ public class PersianCalendar extends Calendar {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected int handleGetLimit(int field, int limitType) {
         return LIMITS[field][limitType];
     }
@@ -315,6 +326,7 @@ public class PersianCalendar extends Calendar {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected int handleGetMonthLength(int extendedYear, int month) {
         // If the month is out of range, adjust it into range, and
         // modify the extended year value accordingly.
@@ -333,6 +345,7 @@ public class PersianCalendar extends Calendar {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected int handleGetYearLength(int extendedYear) {
         return isLeapYear(extendedYear) ? 366 : 365;
     }
@@ -347,6 +360,7 @@ public class PersianCalendar extends Calendar {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected int handleComputeMonthStart(int eyear, int month, boolean useMonth) {
         // If the month is out of range, adjust it into range, and
         // modify the extended year value accordingly.
@@ -371,6 +385,7 @@ public class PersianCalendar extends Calendar {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected int handleGetExtendedYear() {
         int year;
         if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) {
@@ -398,6 +413,7 @@ public class PersianCalendar extends Calendar {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected void handleComputeFields(int julianDay) {
         int year, month, dayOfMonth, dayOfYear;
 
@@ -428,6 +444,7 @@ public class PersianCalendar extends Calendar {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public String getType() {
         return "persian";
     }
index be6f97536e46f16e44824296e0382afec31cf69b..d24880b4c6f37b2c179f24d50241f2e0ed7d7a29 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *******************************************************************************
- * Copyright (C) 2007-2013, International Business Machines Corporation and    *
+ * Copyright (C) 2007-2014, International Business Machines Corporation and    *
  * others. All Rights Reserved.                                                *
  *******************************************************************************
  */
@@ -119,6 +119,7 @@ public class RuleBasedTimeZone extends BasicTimeZone {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     @Override
     public void getOffsetFromLocal(long date,
             int nonExistingTimeOpt, int duplicatedTimeOpt, int[] offsets) {
index e7af8ac11ea55d870d667846178219c90a53296f..335b28a8d1a7d8cf0634b588aee54bab389daaa5 100644 (file)
@@ -1,5 +1,5 @@
  /*
-*   Copyright (C) 1996-2013, International Business Machines
+*   Copyright (C) 1996-2014, International Business Machines
 *   Corporation and others.  All Rights Reserved.
 */
 
@@ -660,6 +660,7 @@ public class SimpleTimeZone extends BasicTimeZone {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public int getOffset(int era, int year, int month, int day,
                               int dayOfWeek, int millis,
                               int monthLength)  {
@@ -788,6 +789,7 @@ public class SimpleTimeZone extends BasicTimeZone {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public void getOffsetFromLocal(long date,
             int nonExistingTimeOpt, int duplicatedTimeOpt, int[] offsets) {
         offsets[0] = getRawOffset();
index 1249ffa285352d982bc9f5128686d60052599796..f1175345112b9768d381a587b944d1dac79a844e 100644 (file)
@@ -1,6 +1,6 @@
 /**
 *******************************************************************************
-* Copyright (C) 1996-2011, International Business Machines Corporation and    *
+* Copyright (C) 1996-2014, International Business Machines Corporation and    *
 * others. All Rights Reserved.                                                *
 *******************************************************************************
 */
@@ -146,6 +146,7 @@ public final class StringTokenizer implements Enumeration<Object>
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public StringTokenizer(String str, UnicodeSet delim, boolean returndelims, boolean coalescedelims)
     {
         m_source_ = str;
@@ -229,6 +230,7 @@ public final class StringTokenizer implements Enumeration<Object>
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public StringTokenizer(String str, String delim, boolean returndelims, boolean coalescedelims)
     {
         // don't ignore whitespace
index 893215b94ccb1c9feb7a42c2a5e32be606ab90ff..09b67fcbafd8a9f57bca6d1554f72134eb2bd3bd 100644 (file)
@@ -1,6 +1,6 @@
 /*
 *******************************************************************************
-*   Copyright (C) 2011-2012, International Business Machines
+*   Copyright (C) 2011-2014, International Business Machines
 *   Corporation and others.  All Rights Reserved.
 *******************************************************************************
 *   created on: 2011jan05
@@ -48,12 +48,14 @@ public abstract class StringTrieBuilder {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected StringTrieBuilder() {}
 
     /**
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected void addImpl(CharSequence s, int value) {
         if(state!=State.ADDING) {
             // Cannot add elements after building.
@@ -74,6 +76,7 @@ public abstract class StringTrieBuilder {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected final void buildImpl(Option buildOption) {
         switch(state) {
         case ADDING:
@@ -118,6 +121,7 @@ public abstract class StringTrieBuilder {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected void clearImpl() {
         strings.setLength(0);
         nodes.clear();
@@ -814,48 +818,57 @@ public abstract class StringTrieBuilder {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected abstract boolean matchNodesCanHaveValues() /*const*/;
 
     /**
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected abstract int getMaxBranchLinearSubNodeLength() /*const*/;
     /**
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected abstract int getMinLinearMatch() /*const*/;
     /**
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected abstract int getMaxLinearMatchLength() /*const*/;
 
     /**
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected abstract int write(int unit);
     /**
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected abstract int write(int offset, int length);
     /**
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected abstract int writeValueAndFinal(int i, boolean isFinal);
     /**
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected abstract int writeValueAndType(boolean hasValue, int value, int node);
     /**
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected abstract int writeDeltaTo(int jumpTarget);
 
     private enum State {
@@ -868,6 +881,7 @@ public abstract class StringTrieBuilder {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected StringBuilder strings=new StringBuilder();
     private Node root;
 
index 35904b18c7a481d20578bb1e2b2b030f47e1b552..9bdaa7a7d3ee887b1f9c022a4561c61796959d4e 100644 (file)
@@ -134,6 +134,7 @@ abstract public class TimeZone implements Serializable, Cloneable, Freezable<Tim
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected TimeZone(String ID) {
         if (ID == null) {
             throw new NullPointerException();
index 9556215c8d1eb036556396d1469b1942e5ecf1ce..aa0df0c50b9c4f3a5cfed246c3063d870cb167e7 100644 (file)
@@ -1479,9 +1479,10 @@ public final class ULocale implements Serializable, Comparable<ULocale> {
      * {@icu} Returns this locale's script localized for display in the default <code>DISPLAY</code> locale.
      * @return the localized script name.
      * @see Category#DISPLAY
-     * @internal ICU 49
+     * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public String getDisplayScriptInContext() {
         return getDisplayScriptInContextInternal(this, getDefault(Category.DISPLAY));
     }
@@ -1500,9 +1501,10 @@ public final class ULocale implements Serializable, Comparable<ULocale> {
      * {@icu} Returns this locale's script localized for display in the provided locale.
      * @param displayLocale the locale in which to display the name.
      * @return the localized script name.
-     * @internal ICU 49
+     * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public String getDisplayScriptInContext(ULocale displayLocale) {
         return getDisplayScriptInContextInternal(this, displayLocale);
     }
@@ -1524,9 +1526,10 @@ public final class ULocale implements Serializable, Comparable<ULocale> {
      * @param localeID the id of the locale whose script will be displayed
      * @param displayLocaleID the id of the locale in which to display the name.
      * @return the localized script name.
-     * @internal ICU 49
+     * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static String getDisplayScriptInContext(String localeID, String displayLocaleID) {
         return getDisplayScriptInContextInternal(new ULocale(localeID), new ULocale(displayLocaleID));
     }
@@ -1546,9 +1549,10 @@ public final class ULocale implements Serializable, Comparable<ULocale> {
      * @param localeID the id of the locale whose script will be displayed.
      * @param displayLocale the locale in which to display the name.
      * @return the localized script name.
-     * @internal ICU 49
+     * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static String getDisplayScriptInContext(String localeID, ULocale displayLocale) {
         return getDisplayScriptInContextInternal(new ULocale(localeID), displayLocale);
     }
index d1febc5d0e1284edd10b09c2c5682d8970bd7c91..b6b68676f8131af79b3bf2d90e7eadd489a39843 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *******************************************************************************
- * Copyright (C) 2004-2013, International Business Machines Corporation and    *
+ * Copyright (C) 2004-2014, International Business Machines Corporation and    *
  * others. All Rights Reserved.                                                *
  *******************************************************************************
  */
@@ -324,6 +324,7 @@ public abstract class UResourceBundle extends ResourceBundle {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static void resetBundleCache() {
         /*
          * A HACK!!!!!
@@ -346,6 +347,7 @@ public abstract class UResourceBundle extends ResourceBundle {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected static UResourceBundle addToCache(ClassLoader cl, String fullName,
                                                 ULocale defaultLocale, UResourceBundle b) {
         synchronized(cacheKey){
@@ -364,6 +366,7 @@ public abstract class UResourceBundle extends ResourceBundle {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected static UResourceBundle loadFromCache(ClassLoader cl, String fullName, 
                                                    ULocale defaultLocale){
         synchronized(cacheKey){
@@ -715,6 +718,7 @@ public abstract class UResourceBundle extends ResourceBundle {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected UResourceBundle findTopLevel(String aKey) {
         // NOTE: this only works for top-level resources.  For resources at lower
         // levels, it fails when you fall back to the parent, since you're now
@@ -782,6 +786,7 @@ public abstract class UResourceBundle extends ResourceBundle {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected UResourceBundle findTopLevel(int index) {
         // NOTE: this _barely_ works for top-level resources.  For resources at lower
         // levels, it fails when you fall back to the parent, since you're now
@@ -816,6 +821,7 @@ public abstract class UResourceBundle extends ResourceBundle {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public Set<String> keySet() {
         if(keys == null) {
             if(isTopLevelResource()) {
@@ -851,6 +857,7 @@ public abstract class UResourceBundle extends ResourceBundle {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected Set<String> handleKeySet() {
         return Collections.emptySet();
     }
@@ -1075,6 +1082,7 @@ public abstract class UResourceBundle extends ResourceBundle {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected abstract void setLoadingStatus(int newStatus);
 
     /**
@@ -1083,6 +1091,7 @@ public abstract class UResourceBundle extends ResourceBundle {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected boolean isTopLevelResource() {
         return true;
     }
index fa15ac3d5223cdc9fd89a3cdd1a1d0daf29e0b16..124148ac323a9acca193566f8bab1264d192bcb3 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *********************************************************************************
- * Copyright (C) 2004-2010, International Business Machines Corporation and    *
+ * Copyright (C) 2004-2014, International Business Machines Corporation and    *
  * others. All Rights Reserved.                                                  *
  *********************************************************************************
  *
@@ -224,6 +224,7 @@ public final class UniversalTimeScale
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static final int EPOCH_OFFSET_MINUS_1_VALUE = 7;
     
     /**
@@ -237,6 +238,7 @@ public final class UniversalTimeScale
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static final int UNITS_ROUND_VALUE = 8;
     
     /**
@@ -250,6 +252,7 @@ public final class UniversalTimeScale
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static final int MIN_ROUND_VALUE = 9;
     
     /**
@@ -263,6 +266,7 @@ public final class UniversalTimeScale
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static final int MAX_ROUND_VALUE = 10;
     
     /**
@@ -275,6 +279,7 @@ public final class UniversalTimeScale
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static final int MAX_SCALE_VALUE = 11;
     
     private static final long ticks        = 1;
@@ -642,6 +647,7 @@ public final class UniversalTimeScale
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static BigDecimal toBigDecimalTrunc(BigDecimal universalTime, int timeScale)
     {
         TimeScaleData data = getTimeScaleData(timeScale);
index c6e903593384d65878b99ac259cb88f4517e89fa..7da7bdd784e510761598dc8808ff628236dd545b 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *******************************************************************************
- * Copyright (C) 2007-2013, International Business Machines Corporation and    *
+ * Copyright (C) 2007-2014, International Business Machines Corporation and    *
  * others. All Rights Reserved.                                                *
  *******************************************************************************
  */
@@ -95,6 +95,7 @@ public class VTimeZone extends BasicTimeZone {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     @Override
     public void getOffsetFromLocal(long date,
             int nonExistingTimeOpt, int duplicatedTimeOpt, int[] offsets) {
index cbc5b610358f0fc5cfc576670a056013830853c2..7e9961acf3dc4d8041515723f8367e6706b9ab47 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *******************************************************************************
- * Copyright (C) 1996-2013, International Business Machines Corporation and
+ * Copyright (C) 1996-2014, International Business Machines Corporation and
  * others. All Rights Reserved.
  *******************************************************************************
  */
@@ -161,6 +161,7 @@ public final class VersionInfo implements Comparable<VersionInfo>
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static final String ICU_DATA_VERSION_PATH = "53b";
     
     /**
@@ -168,6 +169,7 @@ public final class VersionInfo implements Comparable<VersionInfo>
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static final VersionInfo ICU_DATA_VERSION;
 
     /**
@@ -324,6 +326,7 @@ public final class VersionInfo implements Comparable<VersionInfo>
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static VersionInfo javaVersion() {
         if (javaVersion == null) {
             synchronized(VersionInfo.class) {
index f08b5ce995669ef88a6a67e08ad664c207cc58db..8206a052259b14814aa115cc185220a42b92fd79 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *******************************************************************************
- * Copyright (C) 1996-2011, International Business Machines Corporation and    *
+ * Copyright (C) 1996-2014, International Business Machines Corporation and    *
  * others. All Rights Reserved.                                                *
  *******************************************************************************
  */
@@ -273,49 +273,46 @@ import java.util.Map;
  * @internal
  * @deprecated This API is ICU internal only.
  */
+@Deprecated
 public class RuleBasedTransliterator extends Transliterator {
 
     private Data data;
 
-    /**
-     * Constructs a new transliterator from the given rules.
-     * @param rules rules, separated by ';'
-     * @param direction either FORWARD or REVERSE.
-     * @exception IllegalArgumentException if rules are malformed
-     * or direction is invalid.
-     * @internal
-     * @deprecated This API is ICU internal only.
-     */
-    /*public RuleBasedTransliterator(String ID, String rules, int direction,
-                                   UnicodeFilter filter) {
-        super(ID, filter);
-        if (direction != FORWARD && direction != REVERSE) {
-            throw new IllegalArgumentException("Invalid direction");
-        }
-
-        TransliteratorParser parser = new TransliteratorParser();
-        parser.parse(rules, direction);
-        if (parser.idBlockVector.size() != 0 ||
-            parser.compoundFilter != null) {
-            throw new IllegalArgumentException("::ID blocks illegal in RuleBasedTransliterator constructor");
-        }
-
-        data = (Data)parser.dataVector.get(0);
-        setMaximumContextLength(data.ruleSet.getMaximumContextLength());
-    }*/
+//    /**
+//     * Constructs a new transliterator from the given rules.
+//     * @param rules rules, separated by ';'
+//     * @param direction either FORWARD or REVERSE.
+//     * @exception IllegalArgumentException if rules are malformed
+//     * or direction is invalid.
+//     */
+//     public RuleBasedTransliterator(String ID, String rules, int direction,
+//                                   UnicodeFilter filter) {
+//        super(ID, filter);
+//        if (direction != FORWARD && direction != REVERSE) {
+//            throw new IllegalArgumentException("Invalid direction");
+//        }
+//
+//        TransliteratorParser parser = new TransliteratorParser();
+//        parser.parse(rules, direction);
+//        if (parser.idBlockVector.size() != 0 ||
+//            parser.compoundFilter != null) {
+//            throw new IllegalArgumentException("::ID blocks illegal in RuleBasedTransliterator constructor");
+//        }
+//
+//        data = (Data)parser.dataVector.get(0);
+//        setMaximumContextLength(data.ruleSet.getMaximumContextLength());
+//     }
 
-    /**
-     * Constructs a new transliterator from the given rules in the
-     * <code>FORWARD</code> direction.
-     * @param rules rules, separated by ';'
-     * @exception IllegalArgumentException if rules are malformed
-     * or direction is invalid.
-     * @internal
-     * @deprecated This API is ICU internal only.
-     */
-    /*public RuleBasedTransliterator(String ID, String rules) {
-        this(ID, rules, FORWARD, null);
-    }*/
+//    /**
+//     * Constructs a new transliterator from the given rules in the
+//     * <code>FORWARD</code> direction.
+//     * @param rules rules, separated by ';'
+//     * @exception IllegalArgumentException if rules are malformed
+//     * or direction is invalid.
+//     */
+//    public RuleBasedTransliterator(String ID, String rules) {
+//        this(ID, rules, FORWARD, null);
+//    }
 
     RuleBasedTransliterator(String ID, Data data, UnicodeFilter filter) {
         super(ID, filter);
@@ -328,6 +325,7 @@ public class RuleBasedTransliterator extends Transliterator {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     protected void handleTransliterate(Replaceable text,
                                        Position index, boolean incremental) {
         /* We keep start and limit fixed the entire time,
@@ -444,6 +442,7 @@ public class RuleBasedTransliterator extends Transliterator {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public String toRules(boolean escapeUnprintable) {
         return data.ruleSet.toRules(escapeUnprintable);
     }
@@ -451,8 +450,6 @@ public class RuleBasedTransliterator extends Transliterator {
 //    /**
 //     * Return the set of all characters that may be modified by this
 //     * Transliterator, ignoring the effect of our filter.
-//     * @internal
-//     * @deprecated This API is ICU internal only.
 //     */
 //    protected UnicodeSet handleGetSourceSet() {
 //        return data.ruleSet.getSourceTargetSet(false, unicodeFilter);
@@ -461,8 +458,6 @@ public class RuleBasedTransliterator extends Transliterator {
 //    /**
 //     * Returns the set of all characters that may be generated as
 //     * replacement text by this transliterator.
-//     * @internal
-//     * @deprecated This API is ICU internal only.
 //     */
 //    public UnicodeSet getTargetSet() {
 //        return data.ruleSet.getSourceTargetSet(true, unicodeFilter);
@@ -470,7 +465,9 @@ public class RuleBasedTransliterator extends Transliterator {
     
     /**
      * @internal
+     * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     @Override
     public void addSourceTargetSet(UnicodeSet filter, UnicodeSet sourceSet, UnicodeSet targetSet) {
         data.ruleSet.addSourceTargetSet(filter, sourceSet, targetSet);
@@ -481,6 +478,7 @@ public class RuleBasedTransliterator extends Transliterator {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public Transliterator safeClone() {
         UnicodeFilter filter = getFilter();
         if (filter != null && filter instanceof UnicodeSet) {
index faa3bb9f270cef0e44908f5ed190d46b24447ba4..a814a0cd5c1e65e8c29c80d1b369e4a081c95a4c 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *******************************************************************************
- * Copyright (C) 1996-2011, International Business Machines Corporation and    *
+ * Copyright (C) 1996-2014, International Business Machines Corporation and    *
  * others. All Rights Reserved.                                                *
  *******************************************************************************
  */
@@ -376,6 +376,7 @@ public abstract class Transliterator implements StringTransform  {
          * @internal
          * @deprecated This API is ICU internal only.
          */
+        @Deprecated
         public int hashCode() {
             assert false : "hashCode not designed";
             return 42;
@@ -1954,6 +1955,7 @@ public abstract class Transliterator implements StringTransform  {
      * @internal
      * @deprecated This API is ICU internal only.
      */
+    @Deprecated
     public static void registerAny() {
         AnyTransliterator.register();
     }