Skip to content

Commit de926bd

Browse files
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/MaybePointWriteCallableTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public void singleEntry_routesToPointWriter() throws Exception {
5656
ApiFuture<Void> future = callable.futureCall(request, null);
5757
pointWriter.response.set(null);
5858

59-
assertThat((Object) future.get()).isNull();
59+
future.get();
6060
assertThat(classic.request).isNull();
6161
assertThat(pointWriter.request).isNotNull();
6262
// The single entry is converted back into a RowMutation targeting the same row.

0 commit comments

Comments
 (0)