Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
9152dcf4
Commit
9152dcf4
authored
May 16, 2004
by
Mark Wielaard
Committed by
Mark Wielaard
May 16, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* java/io/Writer.java (Writer(Object)): Check for null lock object.
From-SVN: r81921
parent
28963c8f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
libjava/ChangeLog
+5
-0
libjava/java/io/Writer.java
+5
-2
No files found.
libjava/ChangeLog
View file @
9152dcf4
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.
...
...
libjava/java/io/Writer.java
View file @
9152dcf4
/* 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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment