From a010a29561f5e2db51ccda2946f0112c49523972 Mon Sep 17 00:00:00 2001 From: Michael Koch Date: Tue, 22 Feb 2005 13:02:11 +0000 Subject: [PATCH] 2005-02-22 Michael Koch * java/nio/DirectByteBufferImpl.java (owner): Fixed formatting of javadoc. * java/text/DateFormat.java (getAvailableLocales): Fixed formatting. * java/text/SimpleDateFormat.java: Fixed formatting and import statement order. * java/util/Calendar.java (Calendar): Fixed javadoc to be HTML compliant. * java/util/SimpleTimeZone.java: Fixed javadocs. From-SVN: r95392 --- libjava/ChangeLog | 13 +++++++++++++ libjava/java/nio/DirectByteBufferImpl.java | 25 +++++++++++++------------ libjava/java/text/DateFormat.java | 2 +- libjava/java/text/SimpleDateFormat.java | 7 ++++--- libjava/java/util/Calendar.java | 6 +++--- libjava/java/util/SimpleTimeZone.java | 5 +++-- 6 files changed, 37 insertions(+), 21 deletions(-) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index ee7a25f..13d4751 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,16 @@ +2005-02-22 Michael Koch + + * java/nio/DirectByteBufferImpl.java + (owner): Fixed formatting of javadoc. + * java/text/DateFormat.java + (getAvailableLocales): Fixed formatting. + * java/text/SimpleDateFormat.java: + Fixed formatting and import statement order. + * java/util/Calendar.java + (Calendar): Fixed javadoc to be HTML compliant. + * java/util/SimpleTimeZone.java: + Fixed javadocs. + 2005-02-22 Roman Kennke * javax/swing/plaf/basic/BasicLookAndFeel.java diff --git a/libjava/java/nio/DirectByteBufferImpl.java b/libjava/java/nio/DirectByteBufferImpl.java index d287164..8327938 100644 --- a/libjava/java/nio/DirectByteBufferImpl.java +++ b/libjava/java/nio/DirectByteBufferImpl.java @@ -42,18 +42,19 @@ import gnu.gcj.RawData; abstract class DirectByteBufferImpl extends ByteBuffer { - /** The owner is used to keep alive the object that actually owns the - * memory. There are three possibilities: - * 1) owner == this: We allocated the memory and we should free it, - * but *only* in finalize (if we've been sliced - * other objects will also have access to the - * memory). - * 2) owner == null: The byte buffer was created thru - * JNI.NewDirectByteBuffer. The JNI code is - * responsible for freeing the memory. - * 3) owner == some other object: The other object allocated the - * memory and should free it. - */ + /** + * The owner is used to keep alive the object that actually owns the + * memory. There are three possibilities: + * 1) owner == this: We allocated the memory and we should free it, + * but *only* in finalize (if we've been sliced + * other objects will also have access to the + * memory). + * 2) owner == null: The byte buffer was created thru + * JNI.NewDirectByteBuffer. The JNI code is + * responsible for freeing the memory. + * 3) owner == some other object: The other object allocated the + * memory and should free it. + */ private final Object owner; static final class ReadOnly extends DirectByteBufferImpl diff --git a/libjava/java/text/DateFormat.java b/libjava/java/text/DateFormat.java index f19817e..1571672 100644 --- a/libjava/java/text/DateFormat.java +++ b/libjava/java/text/DateFormat.java @@ -494,7 +494,7 @@ public abstract class DateFormat extends Format implements Cloneable * This method returns a list of available locales supported by this * class. */ - public static Locale[] getAvailableLocales () + public static Locale[] getAvailableLocales() { // FIXME Locale[] l = new Locale[1]; diff --git a/libjava/java/text/SimpleDateFormat.java b/libjava/java/text/SimpleDateFormat.java index d8e15f2..ce833b6 100644 --- a/libjava/java/text/SimpleDateFormat.java +++ b/libjava/java/text/SimpleDateFormat.java @@ -45,8 +45,8 @@ import gnu.java.text.FormatBuffer; import gnu.java.text.FormatCharacterIterator; import gnu.java.text.StringFormatBuffer; -import java.io.InvalidObjectException; import java.io.IOException; +import java.io.InvalidObjectException; import java.io.ObjectInputStream; import java.util.ArrayList; import java.util.Calendar; @@ -97,7 +97,8 @@ public class SimpleDateFormat extends DateFormat * @param s the size of the field. * @param c the character used. */ - public CompiledField(int f, int s, char c) { + public CompiledField(int f, int s, char c) + { field = f; size = s; character = c; @@ -169,7 +170,7 @@ public class SimpleDateFormat extends DateFormat * @see DateFormatSymbols * @serial The localisation data. May not be null. */ - private DateFormatSymbols formatData; // formatData + private DateFormatSymbols formatData; /** * The date representing the start of the century diff --git a/libjava/java/util/Calendar.java b/libjava/java/util/Calendar.java index 8a37c5e..0e9284c 100644 --- a/libjava/java/util/Calendar.java +++ b/libjava/java/util/Calendar.java @@ -1,5 +1,5 @@ /* Calendar.java -- - Copyright (C) 1998, 1999, 2000, 2001, 2002, 2004 Free Software Foundation, Inc. + Copyright (C) 1998, 1999, 2000, 2001, 2002, 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -398,10 +398,10 @@ public abstract class Calendar implements Serializable, Cloneable * The version of the serialized data on the stream. *
0 or not present
*
JDK 1.1.5 or later.
- *
1
+ *
1
*
JDK 1.1.6 or later. This always writes a correct `time' value * on the stream, as well as the other fields, to be compatible with - * earlier versions
+ * earlier versions
* @since JDK1.1.6 * @serial */ diff --git a/libjava/java/util/SimpleTimeZone.java b/libjava/java/util/SimpleTimeZone.java index e50d92f..4da1847 100644 --- a/libjava/java/util/SimpleTimeZone.java +++ b/libjava/java/util/SimpleTimeZone.java @@ -1,5 +1,5 @@ /* java.util.SimpleTimeZone - Copyright (C) 1998, 1999, 2000, 2003, 2004 Free Software Foundation, Inc. + Copyright (C) 1998, 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -71,7 +71,7 @@ public class SimpleTimeZone extends TimeZone /** * The daylight savings offset. This is a positive offset in * milliseconds with respect to standard time. Typically this - * is one hour, but for some time zones this may be half an our. + * is one hour, but for some time zones this may be half an hour. * @serial * @since JDK1.1.4 */ @@ -228,6 +228,7 @@ public class SimpleTimeZone extends TimeZone * startMode, endMode and dstSavings. And there is a optional section * as described in writeObject. * + *
* * XXX - JDK 1.2 Beta 4 docu states 1.1.4, but my 1.1.5 has the old * version. -- 2.7.4