Skip to content

Commit

Permalink
Add default implementation of getPriority()
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardehrenfried committed Dec 10, 2021
1 parent a9580aa commit 69a219c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,6 @@ public boolean isPartOfStation() {
return false;
}

@Override
public StopTransferPriority getPriority() {
return null;
}

@Override
public boolean isPartOfSameStationAs(StopLocation alternativeStop) {
return false;
Expand Down
5 changes: 0 additions & 5 deletions src/main/java/org/opentripplanner/model/FlexStopLocation.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,6 @@ public boolean isPartOfStation() {
return false;
}

@Override
public StopTransferPriority getPriority() {
return null;
}

@Override
public boolean isPartOfSameStationAs(StopLocation alternativeStop) {
return false;
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/org/opentripplanner/model/StopLocation.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ default String getFirstZoneAsString() {

boolean isPartOfStation();

StopTransferPriority getPriority();
default StopTransferPriority getPriority() {
return StopTransferPriority.ALLOWED;
}

boolean isPartOfSameStationAs(StopLocation alternativeStop);
}

0 comments on commit 69a219c

Please sign in to comment.