mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-2060 use Calendar.isEquivalentTo()
X-SVN-Rev: 9752
This commit is contained in:
parent
bd48b766d5
commit
9cca604533
1 changed files with 1 additions and 5 deletions
|
@ -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…
Add table
Reference in a new issue