ICU-2060 use Calendar.isEquivalentTo()

X-SVN-Rev: 9752
This commit is contained in:
Alan Liu 2002-08-21 18:39:27 +00:00
parent bd48b766d5
commit 9cca604533

View File

@ -673,11 +673,7 @@ public abstract class DateFormat extends Format {
if (this == obj) return true;
if (obj == null || getClass() != obj.getClass()) return false;
DateFormat other = (DateFormat) obj;
return (// calendar.equivalentTo(other.calendar) // THIS API DOESN'T EXIST YET!
calendar.getFirstDayOfWeek() == other.calendar.getFirstDayOfWeek() &&
calendar.getMinimalDaysInFirstWeek() == other.calendar.getMinimalDaysInFirstWeek() &&
calendar.isLenient() == other.calendar.isLenient() &&
calendar.getTimeZone().equals(other.calendar.getTimeZone()) &&
return (calendar.isEquivalentTo(other.calendar) &&
numberFormat.equals(other.numberFormat));
}