ICU-2118 improve method coverage to 100%

X-SVN-Rev: 10623
This commit is contained in:
Ram Viswanadha 2002-12-11 23:37:43 +00:00
parent 23ba87fcca
commit 1954d291b2
10 changed files with 43 additions and 37 deletions

View File

@ -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) {

View File

@ -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
}

View File

@ -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 =============================================

View File

@ -379,10 +379,11 @@ public final class UScript {
scriptCode,
UProperty.NameChoice.SHORT);
}
///CLOVER:OFF
/**
* Private Constructor. Never default construct
*/
private UScript(){}
///CLOVER:ON
}

View File

@ -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
/**

View File

@ -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 {
/**

View File

@ -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 =====
/**

View File

@ -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

View File

@ -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 ====
/**

View File

@ -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.