Skip to content

Commit

Permalink
checkstyle again
Browse files Browse the repository at this point in the history
  • Loading branch information
tschlenther committed Feb 22, 2024
1 parent a4dc4f4 commit 82691fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/matsim/run/prepare/DrtCaseSetup.java
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,15 @@ public static void prepareScenario(Scenario scenario, ShpOptions drtAreas, Strin
CreateDrtStopsFromNetwork drtStopsCreator = new CreateDrtStopsFromNetwork();
MultiModeDrtConfigGroup multiModeDrtConfigGroup = ConfigUtils.addOrGetModule(scenario.getConfig(), MultiModeDrtConfigGroup.class);

log.info(String.format("reading %s", drtAreas.getShapeFile()));
log.info(String.format("reading %s", drtAreas.getShapeFile()));
for (SimpleFeature feature : drtAreas.readFeatures()) {
String drtMode = String.valueOf(feature.getAttribute("mode"));
if (drtMode.equals("null")) {
throw new IllegalArgumentException(String.format("could not find 'mode' attribute in the given shape file at %s", drtAreas.getShapeFile().toString()));
}
Integer noVehicles = (Integer) feature.getAttribute("noVehicles");
if (noVehicles == null){
throw new IllegalArgumentException(String.format("could not find 'noVehicles' attribute in the given shape file at %s", drtAreas.getShapeFile().toString()));
throw new IllegalArgumentException(String.format("could not find 'noVehicles' attribute in the given shape file at %s", drtAreas.getShapeFile().toString()));
}

log.info(String.format("filtering network for mode %s. Before, the number of links equals %d.", drtMode, scenario.getNetwork().getLinks().size()));
Expand Down

0 comments on commit 82691fc

Please sign in to comment.