Skip to content

Commit 78eb686

Browse files
authored
changed coordinates ArrayList to List so users can pass in generic types (mapbox#302)
1 parent 61e0e5b commit 78eb686

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

mapbox/libjava-services/src/main/java/com/mapbox/services/api/directions/v5/MapboxDirections.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public static class Builder extends MapboxBuilder {
130130
// We use `Boolean` instead of `boolean` to allow unset (null) values.
131131
private String user = null;
132132
private String profile = null;
133-
private ArrayList<Position> coordinates = null;
133+
private List<Position> coordinates = null;
134134
private String accessToken = null;
135135
private Boolean alternatives = null;
136136
private String geometries = null;
@@ -187,7 +187,7 @@ public Builder setProfile(String profile) {
187187
* @return Builder
188188
* @since 1.0.0
189189
*/
190-
public Builder setCoordinates(ArrayList<Position> coordinates) {
190+
public Builder setCoordinates(List<Position> coordinates) {
191191
this.coordinates = coordinates;
192192
return this;
193193
}

0 commit comments

Comments
 (0)