diff --git a/src/main/java/org/opentripplanner/client/model/FareProductUse.java b/src/main/java/org/opentripplanner/client/model/FareProductUse.java index 5fc7442..c073d06 100644 --- a/src/main/java/org/opentripplanner/client/model/FareProductUse.java +++ b/src/main/java/org/opentripplanner/client/model/FareProductUse.java @@ -5,11 +5,11 @@ public record FareProductUse(String id, FareProduct product) { public record FareProduct( - String id, - String name, - Money price, - @Nullable FareProduct.RiderCategory riderCategory, - @Nullable FareProduct.FareMedium medium) { + String id, + String name, + Money price, + @Nullable FareProduct.RiderCategory riderCategory, + @Nullable FareProduct.FareMedium medium) { public record RiderCategory(String id, String name) {} diff --git a/src/main/java/org/opentripplanner/client/model/Itinerary.java b/src/main/java/org/opentripplanner/client/model/Itinerary.java index fdff80b..54cc0a7 100644 --- a/src/main/java/org/opentripplanner/client/model/Itinerary.java +++ b/src/main/java/org/opentripplanner/client/model/Itinerary.java @@ -4,9 +4,7 @@ public record Itinerary(List legs) { - /** - * Does this itinerary contain any legs that contain public transport? - */ + /** Does this itinerary contain any legs that contain public transport? */ public boolean hasTransit() { return legs.stream().anyMatch(Leg::isTransit); } diff --git a/src/main/java/org/opentripplanner/client/model/Leg.java b/src/main/java/org/opentripplanner/client/model/Leg.java index 7a4d9b5..12e03d7 100644 --- a/src/main/java/org/opentripplanner/client/model/Leg.java +++ b/src/main/java/org/opentripplanner/client/model/Leg.java @@ -6,19 +6,17 @@ import org.opentripplanner.client.model.TripPlan.Place; public record Leg( - Place from, - Place to, - OffsetDateTime startTime, - OffsetDateTime endTime, - LegMode mode, - Duration duration, - double distance, - Route route, - List fareProducts) { + Place from, + Place to, + OffsetDateTime startTime, + OffsetDateTime endTime, + LegMode mode, + Duration duration, + double distance, + Route route, + List fareProducts) { - /** - * Is this leg using public transport? - */ + /** Is this leg using public transport? */ public boolean isTransit() { return mode.isTransit(); } diff --git a/src/test/java/org/opentripplanner/IntegrationTest.java b/src/test/java/org/opentripplanner/IntegrationTest.java index 52db9c7..d87801c 100644 --- a/src/test/java/org/opentripplanner/IntegrationTest.java +++ b/src/test/java/org/opentripplanner/IntegrationTest.java @@ -13,8 +13,8 @@ import org.junit.jupiter.api.Test; import org.opentripplanner.client.OtpApiClient; import org.opentripplanner.client.model.Coordinate; -import org.opentripplanner.client.model.RequestMode; import org.opentripplanner.client.model.FareProductUse; +import org.opentripplanner.client.model.RequestMode; import org.opentripplanner.client.parameters.TripPlanParameters; import org.opentripplanner.client.parameters.TripPlanParameters.SearchDirection; import org.slf4j.Logger;