Skip to content

accessToken filelds should be annotated with @NonNull in all mapbox-java services #873

@osana

Description

@osana

All subclasses of com.mapbox.core.MapboxService need a required accessToken to be specified when a Service request is done.

accessToken should be always annotated with a @NonNull annotation.

At the moment there is an inconsistency in the project and the following classes have @Nullable annotation

MapboxDirections
MapboxGeocoding
MapboxMatching
MapboxOptimization
MapboxStaticMap

Only MapboxMatrix, MapboxSpeech and RouteOptions (which is not a Service subclass) have it annotated correctly with @NonNull

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions