From a744026b45055dd42e048a1324d068f3038c9676 Mon Sep 17 00:00:00 2001 From: Peter Date: Fri, 13 Jan 2017 13:57:43 +0100 Subject: [PATCH] rename variable in PathBidirRef --- .../main/java/com/graphhopper/routing/PathBidirRef.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/core/src/main/java/com/graphhopper/routing/PathBidirRef.java b/core/src/main/java/com/graphhopper/routing/PathBidirRef.java index 4f7c162dbb6..09ac9a9f542 100644 --- a/core/src/main/java/com/graphhopper/routing/PathBidirRef.java +++ b/core/src/main/java/com/graphhopper/routing/PathBidirRef.java @@ -17,7 +17,6 @@ */ package com.graphhopper.routing; -import com.graphhopper.routing.util.FlagEncoder; import com.graphhopper.routing.weighting.Weighting; import com.graphhopper.storage.Graph; import com.graphhopper.storage.SPTEntry; @@ -31,7 +30,7 @@ */ public class PathBidirRef extends Path { protected SPTEntry edgeTo; - private boolean switchWrapper = false; + private boolean switchFromAndToSPTEntry = false; public PathBidirRef(Graph g, Weighting weighting) { super(g, weighting); @@ -40,11 +39,11 @@ public PathBidirRef(Graph g, Weighting weighting) { PathBidirRef(PathBidirRef p) { super(p); edgeTo = p.edgeTo; - switchWrapper = p.switchWrapper; + switchFromAndToSPTEntry = p.switchFromAndToSPTEntry; } public PathBidirRef setSwitchToFrom(boolean b) { - switchWrapper = b; + switchFromAndToSPTEntry = b; return this; } @@ -65,7 +64,7 @@ public Path extract() { throw new IllegalStateException("Locations of the 'to'- and 'from'-Edge has to be the same." + toString() + ", fromEntry:" + sptEntry + ", toEntry:" + edgeTo); extractSW.start(); - if (switchWrapper) { + if (switchFromAndToSPTEntry) { SPTEntry ee = sptEntry; sptEntry = edgeTo; edgeTo = ee;