mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-16 23:29:42 +08:00
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:
parent
336a6399a9
commit
49d385e3cd
@ -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'
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user