Skip to content

Commit

Permalink
[feat] #7 geojson data modeling added for MultiLineString
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramachandran Nellaiyappan committed Mar 19, 2024
1 parent b7c8c00 commit 5a10aca
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,10 @@ public static MultiLineString of(List<Position>... coordinates) {
return new MultiLineString(Arrays.stream(coordinates).toList());
}

private static List<Position> validateAndThrowError(List<Position> coordinate) {
private static void validateAndThrowError(List<Position> coordinate) {
if (coordinate.size() < 2) {
throw new IllegalArgumentException("Invalid coordinates. Minimum 2 positions required");
}
return coordinate;
}

}

0 comments on commit 5a10aca

Please sign in to comment.