Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AVRO-4048: Ignore negative return values for InputStream skip #3130

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

belugabehr
Copy link
Contributor

What is the purpose of the change

  • Minor optimization by removing superfluous code

Verifying this change

This change is a trivial rework / code cleanup without any test coverage.

@github-actions github-actions bot added the Java Pull Requests for Java binding label Sep 1, 2024
if (n <= 0) {
if (n == 0) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Notice this code does not bother with the double-zero check. This can be fixed as part of another PR if need by.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Java Pull Requests for Java binding
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant