iceberg
iceberg copied to clipboard
Build: Fix errorprone warnings
Summary:
- Solve https://github.com/apache/iceberg/issues/13178
Details:
- 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 project pattern
Verification:
- Run
./gradlew clean build -x test -x integrationTest --no-build-cacheto ensure no ErrorProne warnings - Run
./gradlew :iceberg-bigquery:testto verify BigQueryMetastoreClientImpl modifications pass tests - Run
./gradlew :iceberg-api:testto verify Timestamps modifications don't break existing functionality
Hi @ajantha-bhat, I've resolved the conflicts and rebased against the latest upstream-main. There is no error prone warning in build. PTAL when you have a chance. Thanks!
Hi @ajantha-bhat , thanks for the heads-up. The nit is solved. Thanks!
@nastra, @pvary: anymore comments for this? +1 from my side.
Hi @nastra,
Thanks for the feedback. PTAL when you have a chance.
Closes https://github.com/apache/iceberg/issues/13178