-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Conversation
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(); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
There was a problem hiding this 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
Keeping the build clean [
./gradlew clean build -x test -x integrationTest
]