[
https://issues.apache.org/jira/browse/BEAM-10402?focusedWorklogId=540032&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-540032
]
ASF GitHub Bot logged work on BEAM-10402:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 22/Jan/21 08:36
Start Date: 22/Jan/21 08:36
Worklog Time Spent: 10m
Work Description: je-ik commented on a change in pull request #13769:
URL: https://github.com/apache/beam/pull/13769#discussion_r562467943
##########
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:
Actually no, because the call `SplitRestriction.of(null, ...)` is
reported as bug by tools such as SonarCloud. That is due to implicit `@Nonnull`
added by the checkerframework.
----------------------------------------------------------------
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]
Issue Time Tracking
-------------------
Worklog Id: (was: 540032)
Time Spent: 15h 20m (was: 15h 10m)
> [Umbrella] Eliminate nullability errors from Beam Java
> ------------------------------------------------------
>
> Key: BEAM-10402
> URL: https://issues.apache.org/jira/browse/BEAM-10402
> Project: Beam
> Issue Type: Improvement
> Components: sdk-java-core
> Reporter: Kenneth Knowles
> Priority: P1
> Labels: Clarified, starter
> Time Spent: 15h 20m
> Remaining Estimate: 0h
>
> I enabled the checker framework and the core SDK exceeds 100 nullability
> errors immediately. We should make this number zero, since nullability errors
> are solved problem in computer science and they do periodically impact Beam.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)