Skip to content

Commit bfa71cd

Browse files
vesameskanenoptionsome
authored andcommitted
Better name for edge validity test
1 parent 4aea534 commit bfa71cd

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/java/org/opentripplanner/routing/linking/VertexLinker.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ public void addAreaVertex(
566566
int added = 0;
567567

568568
for (IntersectionVertex v : visibilityVertices) {
569-
if (!v.checkEdges()) {
569+
if (!v.hasEdges()) {
570570
continue;
571571
}
572572
LineString newGeometry = GEOMETRY_FACTORY.createLineString(
@@ -588,7 +588,7 @@ public void addAreaVertex(
588588
// area calculation to be done after stop linking
589589
if (added == 0) {
590590
for (IntersectionVertex v : visibilityVertices) {
591-
if (!v.checkEdges()) {
591+
if (!v.hasEdges()) {
592592
continue;
593593
}
594594
createSegments(newVertex, v, edgeList, areas, scope, tempEdges);

src/main/java/org/opentripplanner/street/model/vertex/Vertex.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public int getDegreeIn() {
126126
return incoming.length;
127127
}
128128

129-
public boolean checkEdges() {
129+
public boolean hasEdges() {
130130
if (outgoing == null || incoming == null) {
131131
return false;
132132
}

0 commit comments

Comments
 (0)