apache/beam

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

Open

Aperta il 4 giu 2022

Vedi su GitHub
 (4 commenti) (0 reazioni) (2 assegnatari)Java (7313 star) (4097 fork)batch import
P2bugcoregood first issuejava

Descrizione

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.

Guida contributor