Commit bc6d273e by Anthony Green Committed by Anthony Green

Fix bug in URLConnection and correct javadoc annotations in StringBuffer.

From-SVN: r38781
parent 3799607a
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> 2001-01-06 Anthony Green <green@redhat.com>
* java/beans/PropertyDescriptor.java: Fix comment. * java/beans/PropertyDescriptor.java: Fix comment.
......
...@@ -299,7 +299,7 @@ public final class StringBuffer implements Serializable ...@@ -299,7 +299,7 @@ public final class StringBuffer implements Serializable
* @exception NullPointerException if dst is null. * @exception NullPointerException if dst is null.
* @exception IndexOutOfBoundsException if any source or target * @exception IndexOutOfBoundsException if any source or target
* indices are out of range. * 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, public synchronized void getChars (int srcOffset, int srcEnd,
char[] dst, int dstOffset) char[] dst, int dstOffset)
...@@ -494,7 +494,7 @@ public final class StringBuffer implements Serializable ...@@ -494,7 +494,7 @@ public final class StringBuffer implements Serializable
* <em>capacity</em> of the <code>StringBuffer</code>. * <em>capacity</em> of the <code>StringBuffer</code>.
* @return the length of this <code>StringBuffer</code>. * @return the length of this <code>StringBuffer</code>.
* @see #capacity() * @see #capacity()
* @see #setLength() * @see #setLength(int)
*/ */
public int length () public int length ()
{ {
......
...@@ -204,8 +204,6 @@ public abstract class URLConnection ...@@ -204,8 +204,6 @@ public abstract class URLConnection
throw new IllegalAccessError("Already connected"); throw new IllegalAccessError("Already connected");
doOutput = dooutput; doOutput = dooutput;
if (doOutput)
doInput = false;
} }
public boolean getDoOutput() public boolean getDoOutput()
......
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