Skip to content

Commit

Permalink
Remove synchronized from Apache stream wrappers - the wrapped stream …
Browse files Browse the repository at this point in the history
…is synchronized

Signed-off-by: jansupol <jan.supol@oracle.com>
  • Loading branch information
jansupol committed May 6, 2024
1 parent d32c63e commit dd970c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -937,12 +937,12 @@ public void close() throws IOException {
}

@Override
public synchronized void mark(int readlimit) {
public void mark(int readlimit) {
in.mark(readlimit);
}

@Override
public synchronized void reset() throws IOException {
public void reset() throws IOException {
checkAborted();
in.reset();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -941,12 +941,12 @@ public void close() throws IOException {
}

@Override
public synchronized void mark(int readlimit) {
public void mark(int readlimit) {
in.mark(readlimit);
}

@Override
public synchronized void reset() throws IOException {
public void reset() throws IOException {
checkAborted();
in.reset();
}
Expand Down

0 comments on commit dd970c7

Please sign in to comment.