Skip to content

Commit

Permalink
try to satisfy check style
Browse files Browse the repository at this point in the history
  • Loading branch information
GregorRyb committed Feb 3, 2024
1 parent 592da69 commit 95803b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/matsim/run/prepare/PrepareNetwork.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ static void prepareDRT(Network network, ShpOptions shp) {
if (mode.equals("null")) {
throw new IllegalArgumentException("could not find 'mode' attribute in the given shape file at " + shp.getShapeFile().toString());
}
modeGeoms.compute(mode, (m,geom) -> geom == null ? ((Geometry) feature.getDefaultGeometry()) : geom.union((Geometry) feature.getDefaultGeometry()));
modeGeoms.compute(mode, (m, geom) -> geom == null ? ((Geometry) feature.getDefaultGeometry()) : geom.union((Geometry) feature.getDefaultGeometry()));

}

Expand All @@ -77,7 +77,7 @@ static void prepareDRT(Network network, ShpOptions shp) {
}

for (Map.Entry<String, Geometry> modeGeometryEntry : modeGeoms.entrySet()) {
if(MGC.coord2Point(link.getFromNode().getCoord()).within(modeGeometryEntry.getValue()) &&
if (MGC.coord2Point(link.getFromNode().getCoord()).within(modeGeometryEntry.getValue()) &&
MGC.coord2Point(link.getToNode().getCoord()).within(modeGeometryEntry.getValue())){
Set<String> allowedModes = new HashSet<>(link.getAllowedModes());
allowedModes.add(modeGeometryEntry.getKey());
Expand Down

0 comments on commit 95803b9

Please sign in to comment.