ICU-4567 update for code coverage

X-SVN-Rev: 22012
This commit is contained in:
Steven R. Loomis 2007-07-17 17:48:27 +00:00
parent 52f7ab97af
commit 3bb6d90678

View File

@ -106,13 +106,10 @@ int32_t
TaiwanCalendar::getGregorianYear(UErrorCode &status) const
{
int32_t year = (fStamp[UCAL_YEAR] != kUnset) ? internalGet(UCAL_YEAR) : kGregorianEpoch+kTaiwanEraStart;
int32_t era = MINGUO;
if (fStamp[UCAL_ERA] != kUnset) {
era = internalGet(UCAL_ERA);
if (era != MINGUO) {
status = U_ILLEGAL_ARGUMENT_ERROR;
return kGregorianEpoch + kTaiwanEraStart;
}
int32_t era = internalGetEra();
if (era != MINGUO) {
status = U_ILLEGAL_ARGUMENT_ERROR;
return kGregorianEpoch + kTaiwanEraStart;
}
return year + kTaiwanEraStart;
}