Commit de926bd
authored
test(bigtable): resolve NullArgumentForNonNullParameter error in MaybePointWriteCallableTest (#14179)
Fixes #14174
### Problem
During GraalVM native presubmit CI compilation under JDK 21 with
ErrorProne enabled, `MaybePointWriteCallableTest.java` failed with:
`[NullArgumentForNonNullParameter]` at line 59: `assertThat((Object)
future.get()).isNull()`.
- `future.get()` on `ApiFuture<Void>` evaluates to `null` (or throws an
exception).
- ErrorProne failed to resolve Truth's `@Nullable` parameter annotation
on `assertThat(@nullable Object actual)` inside the `@NullMarked`
package when reading bytecode in CI, flagging passing a known-null
value.
### Solution
Replace `assertThat((Object) future.get()).isNull()` with direct
`future.get()` to verify successful completion without exception.1 parent be87565 commit de926bd
1 file changed
Lines changed: 1 addition & 1 deletion
File tree
- java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/stub/mutaterows
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
0 commit comments