Skip to content

Upper bounded wildcards for Options #26

@davidmoten

Description

@davidmoten

In the public api where a method signature specifies a parameter of List<Option> that should be List<? extends Option> so that the user doesn't have to cast a List<QueryOption> to List<Option>.

For example, in com.microsoft.graph.requests.generated.IBaseMessageRequestBuilder:

IMessageRequest buildRequest(java.util.List<Option> requestOptions);

should be

IMessageRequest buildRequest(java.util.List<? extends Option> requestOptions);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions