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

Core: Fix errorprone warning #7286

Merged
merged 1 commit into from
Apr 10, 2023
Merged

Core: Fix errorprone warning #7286

merged 1 commit into from
Apr 10, 2023

Conversation

ajantha-bhat
Copy link
Member

Screenshot 2023-04-06 at 12 18 53 PM

Keeping the build clean [./gradlew clean build -x test -x integrationTest]

@ajantha-bhat
Copy link
Member Author

cc: @Fokko

@@ -75,7 +75,7 @@ private static class InMemorySeekableInputStream extends SeekableInputStream {
@Override
public long getPos() throws IOException {
checkOpen();
return length - delegate.available();
return (long) length - delegate.available();
Copy link
Contributor

Choose a reason for hiding this comment

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

I would rather make length a long a few lines above

Copy link
Member Author

Choose a reason for hiding this comment

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

done.

Copy link
Contributor

@Fokko Fokko left a comment

Choose a reason for hiding this comment

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

Thanks again for fixing this @ajantha-bhat, thanks @nastra for the review

@Fokko Fokko merged commit 4f49a37 into apache:master Apr 10, 2023
ericlgoodman pushed a commit to ericlgoodman/iceberg that referenced this pull request Apr 12, 2023
manisin pushed a commit to Snowflake-Labs/iceberg that referenced this pull request May 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants