BufferedWriter.java (BufferedWriter): Use existing lock of chained Writer when calling super-constructor.
2004-07-20 Bryce McKinlay <mckinlay@redhat.com> * java/io/BufferedWriter.java (BufferedWriter): Use existing lock of chained Writer when calling super-constructor. * java/io/FilterWriter.java (FilterWriter): Likewise. * java/io/PrintWriter.java (PrintWriter): Likewise. From-SVN: r84959
This commit is contained in:
parent
b4ffdef7aa
commit
8246c7784b
4 changed files with 11 additions and 4 deletions
|
@ -86,7 +86,7 @@ public class PrintWriter extends Writer
|
|||
*/
|
||||
public PrintWriter(Writer wr)
|
||||
{
|
||||
super(wr);
|
||||
super(wr.lock);
|
||||
this.out = wr;
|
||||
}
|
||||
|
||||
|
@ -102,7 +102,7 @@ public class PrintWriter extends Writer
|
|||
*/
|
||||
public PrintWriter(Writer wr, boolean autoflush)
|
||||
{
|
||||
super(wr);
|
||||
super(wr.lock);
|
||||
this.out = wr;
|
||||
this.autoflush = autoflush;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue