Skip to content

Commit 943abe0

Browse files
Marcono1234mattirn
authored andcommitted
Fix PumpReader.read(CharBuffer) not being synchronized
1 parent 6d69642 commit 943abe0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

terminal/src/main/java/org/jline/utils/PumpReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ public synchronized int read(char[] cbuf, int off, int len) throws IOException {
183183
}
184184

185185
@Override
186-
public int read(CharBuffer target) throws IOException {
186+
public synchronized int read(CharBuffer target) throws IOException {
187187
if (!target.hasRemaining()) {
188188
return 0;
189189
}

0 commit comments

Comments
 (0)