Commit 42417be4 by Jesse Rosenstock Committed by Tom Tromey

re PR libgcj/7785 (Calendar.getTimeInMillis/setTimeInMillis should be public)

2002-08-30  Jesse Rosenstock  <jmr@ugcs.caltech.edu>

	* java/util/Calendar.java (getTimeInMillis, getTimeInMillis): Now
	public, per 1.4 spec.  Fixes PR libgcj/7785.

From-SVN: r56696
parent 157c4da2
2002-08-30 Jesse Rosenstock <jmr@ugcs.caltech.edu>
* java/util/Calendar.java (getTimeInMillis, getTimeInMillis): Now
public, per 1.4 spec. Fixes PR libgcj/7785.
2002-08-30 Jeff Sturm <jsturm@one-point.com> 2002-08-30 Jeff Sturm <jsturm@one-point.com>
* Makefile.in: Rebuilt. * Makefile.in: Rebuilt.
......
/* java.util.Calendar /* java.util.Calendar
Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc. Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
This file is part of GNU Classpath. This file is part of GNU Classpath.
...@@ -504,8 +504,9 @@ public abstract class Calendar implements Serializable, Cloneable ...@@ -504,8 +504,9 @@ public abstract class Calendar implements Serializable, Cloneable
/** /**
* Returns the time represented by this Calendar. * Returns the time represented by this Calendar.
* @return the time in milliseconds since the epoch. * @return the time in milliseconds since the epoch.
* @specnote This was made public in 1.4.
*/ */
protected long getTimeInMillis() public long getTimeInMillis()
{ {
if (!isTimeSet) if (!isTimeSet)
computeTime(); computeTime();
...@@ -516,8 +517,9 @@ public abstract class Calendar implements Serializable, Cloneable ...@@ -516,8 +517,9 @@ public abstract class Calendar implements Serializable, Cloneable
* Sets this Calendar's time to the given Time. All time fields * Sets this Calendar's time to the given Time. All time fields
* are invalidated by this method. * are invalidated by this method.
* @param time the time in milliseconds since the epoch * @param time the time in milliseconds since the epoch
* @specnote This was made public in 1.4.
*/ */
protected void setTimeInMillis(long time) public void setTimeInMillis(long time)
{ {
this.time = time; this.time = time;
isTimeSet = true; isTimeSet = true;
......
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