apache/beam

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

开放

#21,363 创建于 2022年6月4日

 (5 条评论) (0 个反应) (2 位负责人)Java (4,097 个派生)batch import
P2bugcoregood first issuejava

仓库指标

星标
 (7,313 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南