2003-05-19 Michael Koch <konqueror@gmx.de>

* java/util/Calendar.java
	(get): Not final anymore since JDK 1.4
	(set): Likewise.

From-SVN: r66956
This commit is contained in:
Michael Koch 2003-05-19 09:14:57 +00:00 committed by Michael Koch
parent 66852893a2
commit 336931c175
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2003-05-19 Michael Koch <konqueror@gmx.de>
* java/util/Calendar.java
(get): Not final anymore since JDK 1.4
(set): Likewise.
2003-05-19 Michael Koch <konqueror@gmx.de>
* java/text/CollationKey.java:

View File

@ -531,8 +531,10 @@ public abstract class Calendar implements Serializable, Cloneable
* if they are invalid.
* @param field the time field. One of the time field constants.
* @return the value of the specified field
*
* @specnote Not final since JDK 1.4
*/
public final int get(int field)
public int get(int field)
{
// If the requested field is invalid, force all fields to be recomputed.
if (!isSet[field])
@ -558,8 +560,10 @@ public abstract class Calendar implements Serializable, Cloneable
* the time in milliseconds.
* @param field the time field. One of the time field constants
* @param value the value to be set.
*
* @specnote Not final since JDK 1.4
*/
public final void set(int field, int value)
public void set(int field, int value)
{
isTimeSet = false;
fields[field] = value;