ICU-2060 use Calendar.isEquivalentTo()
X-SVN-Rev: 9752
This commit is contained in:
parent
bd48b766d5
commit
9cca604533
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user