Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
naotoj committed Sep 25, 2024
1 parent b8f2ec9 commit a39b16c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/java.base/share/classes/java/io/ProxyingConsole.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,11 @@ public Console print(Object obj) {
*/
@Override
public String readln(String prompt) {
synchronized (writeLock) {
// synchronized (writeLock) {
synchronized (readLock) {
return delegate.readln(prompt);
}
}
// }
}

/**
Expand Down Expand Up @@ -168,11 +168,11 @@ public String readLine(String format, Object ... args) {
*/
@Override
public String readLine(Locale locale, String format, Object ... args) {
synchronized (writeLock) {
// synchronized (writeLock) {
synchronized (readLock) {
return delegate.readLine(locale, format, args);
}
}
// }
}

/**
Expand All @@ -198,11 +198,11 @@ public char[] readPassword(String format, Object ... args) {
*/
@Override
public char[] readPassword(Locale locale, String format, Object ... args) {
synchronized (writeLock) {
// synchronized (writeLock) {
synchronized (readLock) {
return delegate.readPassword(locale, format, args);
}
}
// }
}

/**
Expand Down

0 comments on commit a39b16c

Please sign in to comment.