-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Build: Fix errorprone warnings #13217
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
base: main
Are you sure you want to change the base?
Build: Fix errorprone warnings #13217
Conversation
d89e764
to
124e055
Compare
124e055
to
36f869f
Compare
- UnnecessaryParentheses at ADLSFileIO#136: remove unnecessary parentheses - ObjectsHashCodePrimitive at DynamicRecordInternalSerializer#234: use Boolean.hashCode instead of Objects.hashCode - MixedMutabilityReturnType at DynamicWriter#202: use ImmutableList for consistent immutable collection returns - ImmutableEnumChecker at Timestamps#47: Replace SerializableFunction with @immutable Apply class for enum immutability - DangerousParallelStreamUsage at BigQueryMetastoreClientImpl#491: Replace parallel stream with Tasks.foreach() for consistent error handling pattern
36f869f
to
ae6f240
Compare
Hi @ajantha-bhat, |
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.
Just one nit.
LGTM. Thanks for taking up this issue and contributions.
NANOS_TO_HOUR(ChronoUnit.HOURS, "hour", TimestampUnit.NANOS); | ||
|
||
@Immutable | ||
static class Apply implements SerializableFunction<Long, Integer> { |
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.
comment for other reviewers:
To fix errorprone warning, followed the Dates
enum style.
Hi @ajantha-bhat , |
Summary:
Details:
Verification:
./gradlew clean build -x test -x integrationTest --no-build-cache
to ensure no ErrorProne warnings./gradlew :iceberg-bigquery:test
to verify BigQueryMetastoreClientImpl modifications pass tests./gradlew :iceberg-api:test
to verify Timestamps modifications don't break existing functionality