Skip to content

@Nullable annotation is missing at ListOperations::indexOf #2488

Closed
@amaembo

Description

@amaembo

Methods indexOf and lastIndexOf here are documented as nullable but not annotated correspondingly.

The documentation says:

@return {@literal null} when used in pipeline / transaction or when not contained in list.

However, the methods are not annotated as @Nullable, and the package is annotated as @NonNullApi. This causes false-positive static analysis warnings. Sorry if I'm missing something.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions