Commit 336931c1 by Michael Koch Committed by Michael Koch

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
parent 66852893
2003-05-19 Michael Koch <konqueror@gmx.de> 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: * java/text/CollationKey.java:
Merged copyright and dat from classpath. Merged copyright and dat from classpath.
* java/text/RuleBasedCollator.java: * java/text/RuleBasedCollator.java:
......
...@@ -531,8 +531,10 @@ public abstract class Calendar implements Serializable, Cloneable ...@@ -531,8 +531,10 @@ public abstract class Calendar implements Serializable, Cloneable
* if they are invalid. * if they are invalid.
* @param field the time field. One of the time field constants. * @param field the time field. One of the time field constants.
* @return the value of the specified field * @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 the requested field is invalid, force all fields to be recomputed.
if (!isSet[field]) if (!isSet[field])
...@@ -558,8 +560,10 @@ public abstract class Calendar implements Serializable, Cloneable ...@@ -558,8 +560,10 @@ public abstract class Calendar implements Serializable, Cloneable
* the time in milliseconds. * the time in milliseconds.
* @param field the time field. One of the time field constants * @param field the time field. One of the time field constants
* @param value the value to be set. * @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; isTimeSet = false;
fields[field] = value; fields[field] = value;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment