Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-6277

KV#of parameters marked with @Nullable, even though nullability is encapsulated in type variables KeyT and ValueT

Details

    • Bug
    • Status: Open
    • P3
    • Resolution: Unresolved
    • 2.8.0, 2.9.0
    • None
    • sdk-java-core

    Description

      On KV#getKey, there is the annotation @Nullable. That annotation is missing on KV#getValue, so I would assume that this means the value cannot be null. However, in KV#of, the parameter value is annotated with @Nullable and no further null checks are done.

      I would assume that KV#getValue should also be marked with @Nullable, or that the annotation @Nullable on the parameter value in the constructor and in KV#of should be removed.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jancallewaert Jan Callewaert

            Dates

              Created:
              Updated:

              Slack

                Issue deployment