Skip to content

Commit 9b01506

Browse files
author
Pablo Guardiola
authored
replace closure nullable annotations by non-null (#1268)
1 parent 6d83ce9 commit 9b01506

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

  • services-directions-models/src/main/java/com/mapbox/api/directions/v5/models

services-directions-models/src/main/java/com/mapbox/api/directions/v5/models/Closure.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.mapbox.api.directions.v5.models;
22

3-
import androidx.annotation.Nullable;
3+
import androidx.annotation.NonNull;
44

55
import com.google.auto.value.AutoValue;
66
import com.google.gson.Gson;
@@ -18,14 +18,14 @@ public abstract class Closure extends DirectionsJsonObject {
1818
/**
1919
* Closure's geometry index start point.
2020
*/
21-
@Nullable
21+
@NonNull
2222
@SerializedName("geometry_index_start")
2323
public abstract Integer geometryIndexStart();
2424

2525
/**
2626
* Closure's geometry index end point.
2727
*/
28-
@Nullable
28+
@NonNull
2929
@SerializedName("geometry_index_end")
3030
public abstract Integer geometryIndexEnd();
3131

@@ -81,14 +81,14 @@ public abstract static class Builder {
8181
*
8282
* @param geometryIndexStart start index
8383
*/
84-
public abstract Builder geometryIndexStart(@Nullable Integer geometryIndexStart);
84+
public abstract Builder geometryIndexStart(@NonNull Integer geometryIndexStart);
8585

8686
/**
8787
* Closure's geometry index end point.
8888
*
8989
* @param geometryIndexEnd end index
9090
*/
91-
public abstract Builder geometryIndexEnd(@Nullable Integer geometryIndexEnd);
91+
public abstract Builder geometryIndexEnd(@NonNull Integer geometryIndexEnd);
9292

9393
/**
9494
* Build a new {@link Closure} object.

0 commit comments

Comments
 (0)