apache/beam

PipelineOptions getters can produce null even if not annotated Nullable when no Default is specified

Open

#21.363 aberto em 4 de jun. de 2022

Ver no GitHub
 (4 comments) (0 reactions) (2 assignees)Java (4.097 forks)batch import
P2bugcoregood first issuejava

Métricas do repositório

Stars
 (7.313 stars)
Métricas de merge de PR
 (Mesclagem média 6d) (243 fundiu PRs em 30d)

Description

Context: BEAM-13537, https://github.com/apache/beam/pull/16625#discussion_r793021931

PipelineOptions getters without Default specified can produce null, but because it happens in generated code, the null checker will not complain about it. Is there some way we can make sure getters without a Default are always Nullable?

Imported from Jira BEAM-13758. Original Jira may contain additional context. Reported by: bhulette.

Guia do colaborador