From 1954d291b2a0da5ec753c7ae4c050f57e1773e2d Mon Sep 17 00:00:00 2001 From: Ram Viswanadha Date: Wed, 11 Dec 2002 23:37:43 +0000 Subject: [PATCH] ICU-2118 improve method coverage to 100% X-SVN-Rev: 10623 --- icu4j/src/com/ibm/icu/lang/UCharacter.java | 8 ++++---- icu4j/src/com/ibm/icu/lang/UCharacterCategory.java | 7 ++++--- icu4j/src/com/ibm/icu/lang/UCharacterDirection.java | 7 ++++--- icu4j/src/com/ibm/icu/lang/UScript.java | 3 ++- icu4j/src/com/ibm/icu/text/Collator.java | 11 ++++++----- icu4j/src/com/ibm/icu/text/ComposedCharIter.java | 5 +++-- icu4j/src/com/ibm/icu/text/NumberFormat.java | 12 ++++++------ .../com/ibm/icu/text/StringCharacterIterator.java | 7 ++++--- icu4j/src/com/ibm/icu/util/Calendar.java | 8 ++++---- icu4j/src/com/ibm/icu/util/Currency.java | 12 ++++++------ 10 files changed, 43 insertions(+), 37 deletions(-) diff --git a/icu4j/src/com/ibm/icu/lang/UCharacter.java b/icu4j/src/com/ibm/icu/lang/UCharacter.java index b3eb73b92e..f2fc6a2e16 100755 --- a/icu4j/src/com/ibm/icu/lang/UCharacter.java +++ b/icu4j/src/com/ibm/icu/lang/UCharacter.java @@ -5,8 +5,8 @@ ******************************************************************************* * * $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/lang/UCharacter.java,v $ -* $Date: 2002/12/11 23:30:25 $ -* $Revision: 1.59 $ +* $Date: 2002/12/11 23:37:42 $ +* $Revision: 1.60 $ * ******************************************************************************* */ @@ -4170,14 +4170,14 @@ public final class UCharacter private static final int SCRIPT_MASK_ = 0x0000007f; // private constructor ----------------------------------------------- - + ///CLOVER:OFF /** * Private constructor to prevent instantiation */ private UCharacter() { } - + ///CLOVER:ON // private methods --------------------------------------------------- private static int getEuropeanDigit(int ch) { diff --git a/icu4j/src/com/ibm/icu/lang/UCharacterCategory.java b/icu4j/src/com/ibm/icu/lang/UCharacterCategory.java index 79516acbc6..5865a56f7d 100755 --- a/icu4j/src/com/ibm/icu/lang/UCharacterCategory.java +++ b/icu4j/src/com/ibm/icu/lang/UCharacterCategory.java @@ -6,8 +6,8 @@ * * $Source: * /usr/cvs/icu4j/icu4j/src/com/ibm/icu/text/UCharacterCategory.java $ -* $Date: 2002/12/03 00:47:53 $ -* $Revision: 1.10 $ +* $Date: 2002/12/11 23:37:43 $ +* $Revision: 1.11 $ * ******************************************************************************* */ @@ -274,11 +274,12 @@ public final class UCharacterCategory } // private constructor ----------------------------------------------- - + ///CLOVER:OFF /** * Private constructor to prevent initialisation */ private UCharacterCategory() { } + ///CLOVER:ON } diff --git a/icu4j/src/com/ibm/icu/lang/UCharacterDirection.java b/icu4j/src/com/ibm/icu/lang/UCharacterDirection.java index d24c31d8da..8129625eec 100755 --- a/icu4j/src/com/ibm/icu/lang/UCharacterDirection.java +++ b/icu4j/src/com/ibm/icu/lang/UCharacterDirection.java @@ -6,8 +6,8 @@ * * $Source: * /usr/cvs/icu4j/icu4j/src/com/ibm/icu/text/UCharacterDirection.java $ -* $Date: 2002/12/03 00:47:50 $ -* $Revision: 1.6 $ +* $Date: 2002/12/11 23:37:43 $ +* $Revision: 1.7 $ * ******************************************************************************* */ @@ -27,13 +27,14 @@ package com.ibm.icu.lang; public final class UCharacterDirection { // private constructor ========================================= - + ///CLOVER:OFF /** * Private constructor to prevent initialisation */ private UCharacterDirection() { } + ///CLOVER:ON // public variable ============================================= diff --git a/icu4j/src/com/ibm/icu/lang/UScript.java b/icu4j/src/com/ibm/icu/lang/UScript.java index b947786e90..c7fab1b8dd 100755 --- a/icu4j/src/com/ibm/icu/lang/UScript.java +++ b/icu4j/src/com/ibm/icu/lang/UScript.java @@ -379,10 +379,11 @@ public final class UScript { scriptCode, UProperty.NameChoice.SHORT); } - + ///CLOVER:OFF /** * Private Constructor. Never default construct */ private UScript(){} + ///CLOVER:ON } diff --git a/icu4j/src/com/ibm/icu/text/Collator.java b/icu4j/src/com/ibm/icu/text/Collator.java index 39b75e0643..a7387d1955 100755 --- a/icu4j/src/com/ibm/icu/text/Collator.java +++ b/icu4j/src/com/ibm/icu/text/Collator.java @@ -5,8 +5,8 @@ ******************************************************************************* * * $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/text/Collator.java,v $ -* $Date: 2002/12/11 19:48:36 $ -* $Revision: 1.18 $ +* $Date: 2002/12/11 23:36:58 $ +* $Revision: 1.19 $ * ******************************************************************************* */ @@ -374,8 +374,8 @@ public abstract class Collator implements Comparator, Cloneable } return false; } - ///CLOVER:ON + ///CLOVER:ON /** * Get the set of Locales for which Collators are installed. * @return the list of available locales which collators are installed. @@ -393,12 +393,13 @@ public abstract class Collator implements Comparator, Cloneable ///CLOVER:ON } } - + ////CLOVER:OFF /* @prototype */ /* public */ static final Map getDisplayNames(Locale locale) { return getService().getDisplayNames(locale); } - + ////CLOVER:ON + // end registry stuff /** diff --git a/icu4j/src/com/ibm/icu/text/ComposedCharIter.java b/icu4j/src/com/ibm/icu/text/ComposedCharIter.java index 8a88d92561..4a18d7fbfd 100755 --- a/icu4j/src/com/ibm/icu/text/ComposedCharIter.java +++ b/icu4j/src/com/ibm/icu/text/ComposedCharIter.java @@ -5,8 +5,8 @@ ******************************************************************************* * * $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/text/ComposedCharIter.java,v $ - * $Date: 2002/12/03 22:03:59 $ - * $Revision: 1.5 $ + * $Date: 2002/12/11 23:36:58 $ + * $Revision: 1.6 $ * ***************************************************************************************** */ @@ -55,6 +55,7 @@ import com.ibm.icu.impl.Utility; * It will be updated as later versions of Unicode are released. * @deprecated ICU 2.2 */ +///CLOVER:OFF public final class ComposedCharIter { /** diff --git a/icu4j/src/com/ibm/icu/text/NumberFormat.java b/icu4j/src/com/ibm/icu/text/NumberFormat.java index ead74d35ea..b62c9e2b2f 100755 --- a/icu4j/src/com/ibm/icu/text/NumberFormat.java +++ b/icu4j/src/com/ibm/icu/text/NumberFormat.java @@ -5,8 +5,8 @@ ******************************************************************************* * * $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/text/NumberFormat.java,v $ - * $Date: 2002/12/05 01:21:42 $ - * $Revision: 1.21 $ + * $Date: 2002/12/11 23:36:58 $ + * $Revision: 1.22 $ * ***************************************************************************************** */ @@ -506,7 +506,7 @@ public abstract class NumberFormat extends Format{ } // ===== Factory stuff ===== - + ///CLOVER:OFF /* @prototype */ /* public */ static abstract class NumberFormatFactory { public static final int FORMAT_NUMBER = NUMBERSTYLE; @@ -575,7 +575,7 @@ public abstract class NumberFormat extends Format{ return delegate.getSupportedLocaleNames(); } } - + ///CLOVER:ON /** * Get the set of Locales for which NumberFormats are installed * @return available locales @@ -588,7 +588,7 @@ public abstract class NumberFormat extends Format{ return service.getAvailableLocales(); } } - + ///CLOVER:OFF /** * Registers a new NumberFormat for the provided locale of the defined * type. The returned object is a key that can be used to unregister this @@ -635,7 +635,7 @@ public abstract class NumberFormat extends Format{ } return service; } - + ///CLOVER:OFF // ===== End of factory stuff ===== /** diff --git a/icu4j/src/com/ibm/icu/text/StringCharacterIterator.java b/icu4j/src/com/ibm/icu/text/StringCharacterIterator.java index 74ce3f4a82..b3324c010a 100755 --- a/icu4j/src/com/ibm/icu/text/StringCharacterIterator.java +++ b/icu4j/src/com/ibm/icu/text/StringCharacterIterator.java @@ -5,8 +5,8 @@ ******************************************************************************* * * $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/text/StringCharacterIterator.java,v $ - * $Date: 2002/12/03 22:03:58 $ - * $Revision: 1.5 $ + * $Date: 2002/12/11 23:36:57 $ + * $Revision: 1.6 $ * ***************************************************************************************** */ @@ -30,7 +30,7 @@ import java.text.CharacterIterator; * @see CharacterIterator * @deprecated ICU 2.4. Use java.text.StringCharacterIterator instead. */ - +///CLOVER:OFF public final class StringCharacterIterator implements CharacterIterator { private String text; @@ -284,3 +284,4 @@ public final class StringCharacterIterator implements CharacterIterator } } +///CLOVER:ON diff --git a/icu4j/src/com/ibm/icu/util/Calendar.java b/icu4j/src/com/ibm/icu/util/Calendar.java index 57dac0248f..388bbe64bf 100755 --- a/icu4j/src/com/ibm/icu/util/Calendar.java +++ b/icu4j/src/com/ibm/icu/util/Calendar.java @@ -1578,7 +1578,7 @@ public abstract class Calendar implements Serializable, Cloneable { } // ==== Factory Stuff ==== - + ///CLOVER:OFF /** * Return a calendar of for the TimeZone and locale. If factoryName is * not null, looks in the collection of CalendarFactories for a match @@ -1605,7 +1605,7 @@ public abstract class Calendar implements Serializable, Cloneable { return factory.create(zone, locale); } } - + ///CLOVER:ON /** * Gets the list of locales for which Calendars are installed. * @return the list of locales for which Calendars are installed. @@ -1617,7 +1617,7 @@ public abstract class Calendar implements Serializable, Cloneable { ? ICULocaleData.getAvailableLocales() : service.getAvailableLocales(); } - + ///CLOVER:OFF private static Map factoryMap; private static Map getFactoryMap() { if (factoryMap == null) { @@ -1715,7 +1715,7 @@ public abstract class Calendar implements Serializable, Cloneable { } return service; } - + //CLOVER:ON // ==== End of factory Stuff ==== /** diff --git a/icu4j/src/com/ibm/icu/util/Currency.java b/icu4j/src/com/ibm/icu/util/Currency.java index 277589776a..e9d80abdcb 100644 --- a/icu4j/src/com/ibm/icu/util/Currency.java +++ b/icu4j/src/com/ibm/icu/util/Currency.java @@ -5,8 +5,8 @@ ******************************************************************************* * * $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/util/Currency.java,v $ - * $Date: 2002/12/04 01:03:39 $ - * $Revision: 1.10 $ + * $Date: 2002/12/11 23:36:08 $ + * $Revision: 1.11 $ * ******************************************************************************* */ @@ -53,7 +53,7 @@ public class Currency implements Serializable { private String isoCode; // begin registry stuff - + ///CLOVER:OFF private static ICULocaleService service; private static ICULocaleService getService() { @@ -78,7 +78,7 @@ public class Currency implements Serializable { } return service; } - + ///CLOVER:ON /** * Returns a currency object for the default currency in the given * locale. @@ -95,7 +95,7 @@ public class Currency implements Serializable { public static Currency getInstance(String theISOCode) { return new Currency(theISOCode); } - + ///CLOVER:OFF /** * Registers a new currency for the provided locale. The returned object * is a key that can be used to unregister this currency object. @@ -113,7 +113,7 @@ public class Currency implements Serializable { /* public */ static boolean unregister(Object registryKey) { return getService().unregisterFactory((Factory)registryKey); } - + ///CLOVER:ON /** * Return an array of the locales for which a currency * is defined.