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 <[email protected]>
  • Loading branch information
jansupol authored and senivam committed May 14, 2024
1 parent 9e874a6 commit d29b2da
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 d29b2da

Please sign in to comment.