OSDN Git Service

Fix bug in URLConnection and correct javadoc annotations in StringBuffer.
authorgreen <green@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 7 Jan 2001 20:01:46 +0000 (20:01 +0000)
committergreen <green@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 7 Jan 2001 20:01:46 +0000 (20:01 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38781 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/ChangeLog
libjava/java/lang/StringBuffer.java
libjava/java/net/URLConnection.java

index 40eee95..5a39de1 100644 (file)
@@ -1,3 +1,10 @@
+2001-01-07  Anthony Green  <green@redhat.com>
+
+       * java/net/URLConnection.java (setDoOutput): URLConnection's may
+       be used for both input and output, so don't clear doInput.
+
+       * java/lang/StringBuffer.java: Fix comments.
+
 2001-01-06  Anthony Green  <green@redhat.com>
 
        * java/beans/PropertyDescriptor.java: Fix comment.
index 0455ca6..16c3863 100644 (file)
@@ -299,7 +299,7 @@ public final class StringBuffer implements Serializable
    *  @exception NullPointerException if dst is null.
    *  @exception IndexOutOfBoundsException if any source or target
    *             indices are out of range.
-   *  @see java.lang.System#arrayCopy(java.lang.Object,int,java.lang.Object,int,int)
+   *  @see java.lang.System#arraycopy(java.lang.Object,int,java.lang.Object,int,int)
    */
   public synchronized void getChars (int srcOffset, int srcEnd,
                                     char[] dst, int dstOffset)
@@ -494,7 +494,7 @@ public final class StringBuffer implements Serializable
    *  <em>capacity</em> of the <code>StringBuffer</code>.
    *  @return the length of this <code>StringBuffer</code>.
    *  @see #capacity()
-   *  @see #setLength()
+   *  @see #setLength(int)
    */
   public int length ()
   {
index 4ddc10c..8f8cf5e 100644 (file)
@@ -204,8 +204,6 @@ public abstract class URLConnection
       throw new IllegalAccessError("Already connected");
 
     doOutput = dooutput;
-    if (doOutput)
-      doInput = false;
   }
 
   public boolean getDoOutput()