apache/beam

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

Open

#21,363 建立於 2022年6月4日

在 GitHub 查看
 (4 留言) (0 反應) (2 負責人)Java (4,097 fork)batch import
P2bugcoregood first issuejava

倉庫指標

Star
 (7,313 star)
PR 合併指標
 (平均合併 6天) (30 天內合併 243 個 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.

貢獻者指南