harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lian...@apache.org
Subject svn commit: r504790 - in /harmony/enhanced/classlib/trunk/modules/luni/src: main/java/java/util/GregorianCalendar.java test/java/tests/api/java/util/GregorianCalendarTest.java
Date Thu, 08 Feb 2007 05:29:00 GMT
Author: liangyx
Date: Wed Feb  7 21:28:58 2007
New Revision: 504790

URL: http://svn.apache.org/viewvc?view=rev&rev=504790
Log:
Change the minimum value of DAY_OF_WEEK_IN_MONTH from -1 to 1

Modified:
    harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/GregorianCalendar.java
    harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/GregorianCalendarTest.java

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/GregorianCalendar.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/GregorianCalendar.java?view=diff&rev=504790&r1=504789&r2=504790
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/GregorianCalendar.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/GregorianCalendar.java
Wed Feb  7 21:28:58 2007
@@ -62,7 +62,7 @@
     private static int[] maximums = new int[] { 1, 292278994, 11, 53, 6, 31,
             366, 7, 6, 1, 11, 23, 59, 59, 999, 14 * 3600 * 1000, 7200000 };
 
-    private static int[] minimums = new int[] { 0, 1, 0, 1, 0, 1, 1, 1, -1, 0,
+    private static int[] minimums = new int[] { 0, 1, 0, 1, 0, 1, 1, 1, 1, 0,
             0, 0, 0, 0, 0, -13 * 3600 * 1000, 0 };
 
     private static int[] leastMaximums = new int[] { 1, 292269054, 11, 50, 3,

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/GregorianCalendarTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/GregorianCalendarTest.java?view=diff&rev=504790&r1=504789&r2=504790
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/GregorianCalendarTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/GregorianCalendarTest.java
Wed Feb  7 21:28:58 2007
@@ -333,7 +333,7 @@
 				.getActualMinimum(Calendar.HOUR_OF_DAY));
 		assertEquals("Wrong actual minimum value for HOUR", 0, gc1
 				.getActualMinimum(Calendar.HOUR));
-		assertEquals("Wrong actual minimum value for DAY_OF_WEEK_IN_MONTH", -1, gc6
+		assertEquals("Wrong actual minimum value for DAY_OF_WEEK_IN_MONTH", 1, gc6
 				.getActualMinimum(Calendar.DAY_OF_WEEK_IN_MONTH));
 	}
 
@@ -354,7 +354,7 @@
 				.getGreatestMinimum(Calendar.HOUR));
 
 		BitSet result = new BitSet();
-		int[] min = { 0, 1, 0, 1, 0, 1, 1, 1, -1, 0, 0, 0, 0, 0, 0, -46800000,
+		int[] min = { 0, 1, 0, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, -46800000,
 				0 };
 		for (int i = 0; i < min.length; i++) {
 			if (gc.getGreatestMinimum(i) != min[i])
@@ -463,7 +463,7 @@
 				0, gc.getMinimum(Calendar.HOUR));
 
 		BitSet result = new BitSet();
-		int[] min = { 0, 1, 0, 1, 0, 1, 1, 1, -1, 0, 0, 0, 0, 0, 0, -46800000,
+		int[] min = { 0, 1, 0, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, -46800000,
 				0 };
 		for (int i = 0; i < min.length; i++) {
 			if (gc.getMinimum(i) != min[i])



Mime
View raw message