boyuanzz commented on a change in pull request #13769:
URL: https://github.com/apache/beam/pull/13769#discussion_r562252293



##########
File path: 
sdks/java/core/src/main/java/org/apache/beam/sdk/transforms/splittabledofn/SplitResult.java
##########
@@ -28,7 +28,7 @@
 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) {

Review comment:
       Would the `@Nullabe` annotations below(L36 and L39) be enough?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to