Skip to content

Commit 12f389b

Browse files
committed
Add nullable annotations.
1 parent 545baa2 commit 12f389b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

application/src/main/java/org/opentripplanner/routing/algorithm/filterchain/filters/transit/RemoveTransitIfStreetOnlyIsBetter.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import java.util.List;
44
import java.util.OptionalInt;
5+
import javax.annotation.Nullable;
56
import org.opentripplanner.framework.model.Cost;
67
import org.opentripplanner.model.plan.Itinerary;
78
import org.opentripplanner.routing.algorithm.filterchain.framework.spi.RemoveItineraryFlagger;
@@ -15,7 +16,10 @@
1516
public class RemoveTransitIfStreetOnlyIsBetter implements RemoveItineraryFlagger {
1617

1718
private final CostLinearFunction costLimitFunction;
19+
20+
@Nullable
1821
private final Cost generalizedCostMaxLimit;
22+
1923
private RemoveTransitIfStreetOnlyIsBetterResult removeTransitIfStreetOnlyIsBetterResult = null;
2024

2125
/**
@@ -25,7 +29,7 @@ public class RemoveTransitIfStreetOnlyIsBetter implements RemoveItineraryFlagger
2529
*/
2630
public RemoveTransitIfStreetOnlyIsBetter(
2731
CostLinearFunction costLimitFunction,
28-
Cost generalizedCostMaxLimit
32+
@Nullable Cost generalizedCostMaxLimit
2933
) {
3034
this.costLimitFunction = costLimitFunction;
3135
this.generalizedCostMaxLimit = generalizedCostMaxLimit;

0 commit comments

Comments
 (0)