Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
easbar committed Feb 10, 2024
1 parent b76f823 commit 8996c25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/com/graphhopper/GraphHopper.java
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ protected EncodingManager buildEncodingManager(Map<String, PMap> encodedValuesWi
.toList());
profilesByName.values().forEach(profile -> encodedValues.add(Subnetwork.create(profile.getName())));

List<String> sortedEVs = getEVSortIndex();
List<String> sortedEVs = getEVSortIndex(vehiclePropsByVehicle, profilesByName);
encodedValues.sort(Comparator.comparingInt(ev -> sortedEVs.indexOf(ev.getName())));

EncodingManager.Builder emBuilder = new EncodingManager.Builder();
Expand All @@ -620,7 +620,7 @@ protected EncodingManager buildEncodingManager(Map<String, PMap> encodedValuesWi
return emBuilder.build();
}

protected List<String> getEVSortIndex() {
protected List<String> getEVSortIndex(Map<String, PMap> vehiclePropsByVehicle, Map<String, Profile> profilesByName) {
return Collections.emptyList();
}

Expand Down

0 comments on commit 8996c25

Please sign in to comment.