ICU-3517 avoid deprecated new Date(y,m,d)

X-SVN-Rev: 14573
This commit is contained in:
Alan Liu 2004-02-25 00:01:56 +00:00
parent cdc0b20d83
commit 0050b69435

View File

@ -3,8 +3,8 @@
* others. All Rights Reserved.
*********************************************************************
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/dev/test/calendar/ChineseTest.java,v $
* $Date: 2003/12/13 00:30:57 $
* $Revision: 1.13 $
* $Date: 2004/02/25 00:01:56 $
* $Revision: 1.14 $
*/
package com.ibm.icu.dev.test.calendar;
import com.ibm.icu.util.*;
@ -527,7 +527,7 @@ public class ChineseTest extends CalendarTest {
ChineseCalendar cal = new ChineseCalendar();
ChineseDateFormat fmt = (ChineseDateFormat)DateFormat.getInstance(cal);
fmt.applyPattern("llyyll");
Date time = new Date(2100-1900, Calendar.JANUARY, 1);
Date time = getDate(2100, Calendar.JANUARY, 1);
String str = fmt.format(time);
try {
Date e = fmt.parse(str);