* java/io/Writer.java (Writer(Object)): Check for null lock object.
From-SVN: r81921
This commit is contained in:
parent
28963c8f26
commit
9152dcf43e
2 changed files with 10 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-05-16 Mark Wielaard <mark@klomp.org>
|
||||
|
||||
* java/io/Writer.java (Writer(Object)): Check for null lock object.
|
||||
|
||||
|
||||
2004-05-15 Mark Wielaard <mark@klomp.org>
|
||||
|
||||
* doc/cni.sgml: Removed, merged into gcj.texi.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* Writer.java -- Base class for character output streams
|
||||
Copyright (C) 1998, 1999, 2001, 2003 Free Software Foundation, Inc.
|
||||
Copyright (C) 1998, 1999, 2001, 2003, 2004 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
|
@ -76,10 +76,13 @@ public abstract class Writer
|
|||
* on the specified <code>Object</code>.
|
||||
*
|
||||
* @param lock The <code>Object</code> to use for synchronizing critical
|
||||
* sections
|
||||
* sections. Must be not be null.
|
||||
*/
|
||||
protected Writer(Object lock)
|
||||
{
|
||||
if (lock == null)
|
||||
throw new NullPointerException();
|
||||
|
||||
this.lock = lock;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue