Commit 9152dcf4 by Mark Wielaard Committed by Mark Wielaard

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

From-SVN: r81921
parent 28963c8f
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> 2004-05-15 Mark Wielaard <mark@klomp.org>
* doc/cni.sgml: Removed, merged into gcj.texi. * doc/cni.sgml: Removed, merged into gcj.texi.
......
/* Writer.java -- Base class for character output streams /* 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. This file is part of GNU Classpath.
...@@ -76,10 +76,13 @@ public abstract class Writer ...@@ -76,10 +76,13 @@ public abstract class Writer
* on the specified <code>Object</code>. * on the specified <code>Object</code>.
* *
* @param lock The <code>Object</code> to use for synchronizing critical * @param lock The <code>Object</code> to use for synchronizing critical
* sections * sections. Must be not be null.
*/ */
protected Writer(Object lock) protected Writer(Object lock)
{ {
if (lock == null)
throw new NullPointerException();
this.lock = lock; this.lock = lock;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment