You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2023/01/03 21:48:50 UTC

[GitHub] [beam] kennknowles commented on issue #24801: [Bug]: ReadableState.read() marked not nullable, but it does return null when not initialized

kennknowles commented on issue #24801:
URL: https://github.com/apache/beam/issues/24801#issuecomment-1370258242

   yea, the `T` can be instantiated to `@Nullable Foo`. In most cases, generics should not be marked nullable because that is a property of the actual type parameter. The generic parameter can have lower/upper bounds that force it to always be a supertype or subtype of nullable.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org