Fix bug in URLConnection and correct javadoc annotations in StringBuffer.
From-SVN: r38781
This commit is contained in:
parent
3799607a1a
commit
bc6d273e64
3 changed files with 9 additions and 4 deletions
|
@ -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>
|
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
|
||||||
* @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
|
||||||
* <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
|
||||||
throw new IllegalAccessError("Already connected");
|
throw new IllegalAccessError("Already connected");
|
||||||
|
|
||||||
doOutput = dooutput;
|
doOutput = dooutput;
|
||||||
if (doOutput)
|
|
||||||
doInput = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean getDoOutput()
|
public boolean getDoOutput()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue