You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by bo...@apache.org on 2021/01/22 18:46:45 UTC

[beam] branch master updated: [BEAM-10402] Add nullability annotations to SplitResult.of

This is an automated email from the ASF dual-hosted git repository.

boyuanz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/master by this push:
     new aa57b51  [BEAM-10402] Add nullability annotations to SplitResult.of
     new 8194761  Merge pull request #13769 from [BEAM-10402] Add nullability annotations to SplitResult.of
aa57b51 is described below

commit aa57b51cad5d73beffd6d687b7ef9d7721ed8b7b
Author: Jan Lukavsky <je...@seznam.cz>
AuthorDate: Tue Jan 19 15:09:24 2021 +0100

    [BEAM-10402] Add nullability annotations to SplitResult.of
---
 .../java/org/apache/beam/sdk/transforms/splittabledofn/SplitResult.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sdks/java/core/src/main/java/org/apache/beam/sdk/transforms/splittabledofn/SplitResult.java b/sdks/java/core/src/main/java/org/apache/beam/sdk/transforms/splittabledofn/SplitResult.java
index 8c44ae4..dd02101 100644
--- a/sdks/java/core/src/main/java/org/apache/beam/sdk/transforms/splittabledofn/SplitResult.java
+++ b/sdks/java/core/src/main/java/org/apache/beam/sdk/transforms/splittabledofn/SplitResult.java
@@ -28,7 +28,7 @@ import org.checkerframework.checker.nullness.qual.Nullable;
 public abstract class SplitResult<RestrictionT> {
   /** Returns a {@link SplitResult} for the specified primary and residual restrictions. */
   public static <RestrictionT> SplitResult<RestrictionT> of(
-      RestrictionT primary, RestrictionT residual) {
+      @Nullable RestrictionT primary, @Nullable RestrictionT residual) {
     return new AutoValue_SplitResult(primary, residual);
   }