ICU-4567 update for code coverage
X-SVN-Rev: 22012
This commit is contained in:
parent
52f7ab97af
commit
3bb6d90678
@ -106,13 +106,10 @@ int32_t
|
|||||||
TaiwanCalendar::getGregorianYear(UErrorCode &status) const
|
TaiwanCalendar::getGregorianYear(UErrorCode &status) const
|
||||||
{
|
{
|
||||||
int32_t year = (fStamp[UCAL_YEAR] != kUnset) ? internalGet(UCAL_YEAR) : kGregorianEpoch+kTaiwanEraStart;
|
int32_t year = (fStamp[UCAL_YEAR] != kUnset) ? internalGet(UCAL_YEAR) : kGregorianEpoch+kTaiwanEraStart;
|
||||||
int32_t era = MINGUO;
|
int32_t era = internalGetEra();
|
||||||
if (fStamp[UCAL_ERA] != kUnset) {
|
if (era != MINGUO) {
|
||||||
era = internalGet(UCAL_ERA);
|
status = U_ILLEGAL_ARGUMENT_ERROR;
|
||||||
if (era != MINGUO) {
|
return kGregorianEpoch + kTaiwanEraStart;
|
||||||
status = U_ILLEGAL_ARGUMENT_ERROR;
|
|
||||||
return kGregorianEpoch + kTaiwanEraStart;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return year + kTaiwanEraStart;
|
return year + kTaiwanEraStart;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user