mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 08:53:20 +00:00
ICU-11070 use uppercase long-int-constant: 0L not 0l
X-SVN-Rev: 36206
This commit is contained in:
parent
912521e5cf
commit
42d4d14094
2 changed files with 11 additions and 13 deletions
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2001-2010, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
* Copyright (C) 2001-2014, International Business Machines Corporation and
|
||||
* others. All Rights Reserved.
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
||||
|
@ -53,10 +53,10 @@ public class DateFormatRegressionTestJ extends com.ibm.icu.dev.test.TestFmwk {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
//Missing digit in millisecone format in SimpleDateFormat
|
||||
|
||||
// Missing digit in millisecond format in SimpleDateFormat
|
||||
public void Test4148168() {
|
||||
Date d = new Date(1002705212906l);
|
||||
Date d = new Date(1002705212906L);
|
||||
String[] ISOPattern = {
|
||||
"''yyyy-MM-dd-hh.mm.ss.S''", "''yyyy-MM-dd-hh.mm.ss.SS''",
|
||||
"''yyyy-MM-dd-hh.mm.ss.SSS''", "''yyyy-MM-dd-hh.mm.ss.SSSS''",
|
||||
|
@ -137,8 +137,8 @@ public class DateFormatRegressionTestJ extends com.ibm.icu.dev.test.TestFmwk {
|
|||
|
||||
//pattern "s.S, parse '1ms'"
|
||||
public void Test4253490() {
|
||||
Date d = new Date(1002705212231l);
|
||||
|
||||
Date d = new Date(1002705212231L);
|
||||
|
||||
String[] ISOPattern = {
|
||||
"''yyyy-MM-dd-hh.mm.ss.S''",
|
||||
"''yyyy-MM-dd-hh.mm.ss.SS''",
|
||||
|
@ -218,7 +218,7 @@ public class DateFormatRegressionTestJ extends com.ibm.icu.dev.test.TestFmwk {
|
|||
}*/
|
||||
|
||||
public void Test4468663() {
|
||||
Date d =new Date(-93716671115767l);
|
||||
Date d =new Date(-93716671115767L);
|
||||
String origin_d = d.toString();
|
||||
String str;
|
||||
final String pattern = new String("EEEE, MMMM d, yyyy");
|
||||
|
|
|
@ -1894,7 +1894,7 @@ public class DateFormatTest extends com.ibm.icu.dev.test.TestFmwk {
|
|||
public void TestDateFormatZone061() {
|
||||
Date date;
|
||||
DateFormat formatter;
|
||||
date = new Date(859248000000l);
|
||||
date = new Date(859248000000L);
|
||||
logln("Date 1997/3/25 00:00 GMT: " + date);
|
||||
formatter = new SimpleDateFormat("dd-MMM-yyyyy HH:mm", Locale.UK);
|
||||
formatter.setTimeZone(TimeZone.getTimeZone("GMT"));
|
||||
|
@ -1970,8 +1970,7 @@ public class DateFormatTest extends com.ibm.icu.dev.test.TestFmwk {
|
|||
* Test the formatting of dates in different locales.
|
||||
*/
|
||||
public void TestLocaleDateFormat() {
|
||||
|
||||
Date testDate = new Date(874306800000l); //Mon Sep 15 00:00:00 PDT 1997
|
||||
Date testDate = new Date(874306800000L); //Mon Sep 15 00:00:00 PDT 1997
|
||||
DateFormat dfFrench = DateFormat.getDateTimeInstance(DateFormat.FULL, DateFormat.FULL, Locale.FRENCH);
|
||||
DateFormat dfUS = DateFormat.getDateTimeInstance(DateFormat.FULL, DateFormat.FULL, Locale.US);
|
||||
//Set TimeZone = PDT
|
||||
|
@ -2007,8 +2006,7 @@ public class DateFormatTest extends com.ibm.icu.dev.test.TestFmwk {
|
|||
* Test the formatting of dates with the 'NONE' keyword.
|
||||
*/
|
||||
public void TestDateFormatNone() {
|
||||
|
||||
Date testDate = new Date(874306800000l); //Mon Sep 15 00:00:00 PDT 1997
|
||||
Date testDate = new Date(874306800000L); //Mon Sep 15 00:00:00 PDT 1997
|
||||
DateFormat dfFrench = DateFormat.getDateTimeInstance(DateFormat.FULL, DateFormat.NONE, Locale.FRENCH);
|
||||
//Set TimeZone = PDT
|
||||
TimeZone tz = TimeZone.getTimeZone("PST");
|
||||
|
|
Loading…
Add table
Reference in a new issue