Skip to content

Update Generated Code For Nullability #15

@JasonBock

Description

@JasonBock

Currently, methods on GeneratorFormatterReaderContext, like Read<>() and ReadMobileObject<>(), should return a T, not T?, and annotated with [MaybeNull]. Then, only in the cases where calls to these methods would end up being assigned to a type that might take a non-nullable value, like string, should use the null-forgiving operator: !

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions