OutputStreamWriter.java (OutputStreamWriter): Reverted previous patch; it too was incorrect.

* java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
	previous patch; it too was incorrect.
	* java/io/PrintStream.java (PrintStream): Likewise.

From-SVN: r29566
This commit is contained in:
Tom Tromey 1999-09-21 21:35:41 +00:00 committed by Tom Tromey
parent 336a6399a9
commit 49d385e3cd
3 changed files with 10 additions and 10 deletions

View File

@ -1,5 +1,9 @@
1999-09-21 Tom Tromey <tromey@cygnus.com>
* java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
previous patch; it too was incorrect.
* java/io/PrintStream.java (PrintStream): Likewise.
* java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
refer to `this' before calling superclass constructor.
* java/io/PrintStream.java (PrintStream): Don't refer to `this'

View File

@ -32,11 +32,9 @@ public class OutputStreamWriter extends Writer
private OutputStreamWriter(OutputStream out, UnicodeToBytes encoder)
{
BufferedOutputStream buf = (out instanceof BufferedOutputStream
? (BufferedOutputStream) out
: new BufferedOutputStream(out, 250));
super (buf);
this.out = buf;
super((this.out = (out instanceof BufferedOutputStream
? (BufferedOutputStream) out
: new BufferedOutputStream(out, 250))));
this.converter = encoder;
}

View File

@ -238,11 +238,9 @@ public class PrintStream extends FilterOutputStream
public PrintStream (OutputStream out, boolean af)
{
BufferedOutputStream buf = (out instanceof BufferedOutputStream
? (BufferedOutputStream) out
: new BufferedOutputStream(out, 250));
super (buf);
this.out = buf;
super ((this.out = (out instanceof BufferedOutputStream
? (BufferedOutputStream) out
: new BufferedOutputStream(out, 250))));
converter = UnicodeToBytes.getDefaultEncoder();
error = false;
auto_flush = af;