apache/beam

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

Open

#21.363 geöffnet am 4. Juni 2022

Auf GitHub ansehen
 (4 Kommentare) (0 Reaktionen) (2 zugewiesene Personen)Java (4.097 Forks)batch import
P2bugcoregood first issuejava

Repository-Metriken

Stars
 (7.313 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 7T 5h) (234 gemergte PRs in 30 T)

Beschreibung

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.

Contributor Guide