Skip to content

Commit 6be7ecb

Browse files
hansonrhansonr
authored andcommitted
setting lock to just "", not the actual string or object
1 parent 76e5f01 commit 6be7ecb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sources/net.sf.j2s.java.core/src/java/io/Reader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ protected Reader() {
5151
*/
5252
protected Reader(Object lock) {
5353
if (lock != null)
54-
this.lock = lock;
54+
this.lock = "";// swingjs no real object here
5555
else
5656
throw new NullPointerException();
5757
}

sources/net.sf.j2s.java.core/src/java/io/Writer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ protected Writer() {
5050
*/
5151
protected Writer(Object lock) {
5252
if (lock != null) {
53-
this.lock = lock;
53+
this.lock = ""; // swingjs no real object here
5454
} else {
5555
throw new NullPointerException();
5656
}

0 commit comments

Comments
 (0)