]> granicus.if.org Git - icu/commitdiff
ICU-11070 use uppercase long-int-constant: 0L not 0l
authorMarkus Scherer <markus.icu@gmail.com>
Wed, 20 Aug 2014 18:24:36 +0000 (18:24 +0000)
committerMarkus Scherer <markus.icu@gmail.com>
Wed, 20 Aug 2014 18:24:36 +0000 (18:24 +0000)
X-SVN-Rev: 36206

icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/DateFormatRegressionTestJ.java
icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/DateFormatTest.java

index a3fa1771f874015221ad40e68f93c4be8182e5fa..833b93ff1d3c5d06ac6ff6aa9237000f5c186ce1 100644 (file)
@@ -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");
index 5e878a201e97393f10297d309555005c253717ee..8e53561d373ffc454dbe2951f4caf9f6e713c514 100644 (file)
@@ -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");