From: Mark Davis Date: Thu, 6 Dec 2012 17:58:22 +0000 (+0000) Subject: ICU-7645 Fix some dangling non@internals X-Git-Tag: milestone-59-0-1~3276 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2ee13b13ab88c3a82afb99f6d938ce3b7cc41290;p=icu ICU-7645 Fix some dangling non@internals X-SVN-Rev: 32932 --- diff --git a/icu4j/main/classes/core/src/com/ibm/icu/text/IdentifierInfo.java b/icu4j/main/classes/core/src/com/ibm/icu/text/IdentifierInfo.java index a46143897c5..508bd55b03f 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/text/IdentifierInfo.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/text/IdentifierInfo.java @@ -49,6 +49,15 @@ public class IdentifierInfo { private final UnicodeSet numerics = new UnicodeSet(); private final UnicodeSet identifierProfile = new UnicodeSet(0, 0x10FFFF); + /** + * Create an identifier info object. Subsequently, call {@link #setIdentifier(String)}, etc. + * {@link #setIdentifierProfile(UnicodeSet)} + * @internal + */ + public IdentifierInfo() { + super(); + } + private IdentifierInfo clear() { requiredScripts.clear(); scriptSetSet.clear(); @@ -274,6 +283,7 @@ public class IdentifierInfo { * Find out which scripts are in common among the alternates. * * @return the set of scripts that are in common among the alternates. + * @internal */ public BitSet getCommonAmongAlternates() { return (BitSet) commonAmongAlternates.clone(); @@ -323,6 +333,10 @@ public class IdentifierInfo { return RestrictionLevel.MINIMALLY_RESTRICTIVE; } + /** + * See Object.toString() + * @internal + */ @Override public String toString() { return identifier + ", " + identifierProfile.toPattern(false) + ", " + getRestrictionLevel() + ", " @@ -470,7 +484,8 @@ public class IdentifierInfo { } return bitset; } - + + // public static final class FreezableBitSet extends BitSet implements Freezable { // private boolean frozen; // diff --git a/icu4j/main/classes/core/src/com/ibm/icu/text/SpoofChecker.java b/icu4j/main/classes/core/src/com/ibm/icu/text/SpoofChecker.java index 5c988290ed3..09c0c98d84c 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/text/SpoofChecker.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/text/SpoofChecker.java @@ -143,6 +143,10 @@ import com.ibm.icu.util.ULocale; */ public class SpoofChecker { + /** + * Constants from UAX 31 for use in setRestrictionLevel. + * @internal + */ public enum RestrictionLevel { /** * Only ASCII characters: U+0000..U+007F @@ -1482,7 +1486,7 @@ public class SpoofChecker { /** * The restriction level that the text meets, if RESTRICTION_LEVEL is set; otherwise null. * - * @stable ICU 4.6 + * @internal */ public RestrictionLevel restrictionLevel;