Skip to content

Commit

Permalink
Revert "AVRO-3748 [java] fix SeekableInputStream.skip (apache#2203)" (a…
Browse files Browse the repository at this point in the history
…pache#2446)

This reverts commit 33631e1.
  • Loading branch information
clesaec authored and Ranbir Kumar committed May 13, 2024
1 parent 6a40d25 commit 870b2a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -312,11 +312,12 @@ public long skip(long skip) throws IOException {
long length = in.length();
long remaining = length - position;
if (remaining > skip) {
in.seek(position + skip);
in.seek(skip);
return in.tell() - position;
} else {
in.seek(length);
in.seek(remaining);
return in.tell() - position;
}
return in.tell() - position;
}

@Override
Expand Down

This file was deleted.

0 comments on commit 870b2a4

Please sign in to comment.