* java/io/Writer.java (Writer(Object)): Check for null lock object.

From-SVN: r81921
This commit is contained in:
Mark Wielaard 2004-05-16 18:35:37 +00:00 committed by Mark Wielaard
parent 28963c8f26
commit 9152dcf43e
2 changed files with 10 additions and 2 deletions

View file

@ -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.

View file

@ -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;
}