File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
core/src/main/java/com/graphhopper/routing/ch Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 23
23
import com .graphhopper .routing .util .TraversalMode ;
24
24
import com .graphhopper .routing .weighting .AbstractWeighting ;
25
25
import com .graphhopper .routing .weighting .Weighting ;
26
- import com .graphhopper .storage .*;
26
+ import com .graphhopper .storage .GraphHopperStorage ;
27
+ import com .graphhopper .storage .StorableProperties ;
27
28
import com .graphhopper .util .CmdArgs ;
28
29
import com .graphhopper .util .PMap ;
29
30
import com .graphhopper .util .Parameters ;
32
33
import org .slf4j .LoggerFactory ;
33
34
34
35
import java .util .*;
35
- import java .util .concurrent .*;
36
+ import java .util .concurrent .ExecutorCompletionService ;
37
+ import java .util .concurrent .ExecutorService ;
36
38
37
39
import static com .graphhopper .util .Helper .*;
38
40
import static com .graphhopper .util .Parameters .CH .DISABLE ;
@@ -90,8 +92,9 @@ public void init(CmdArgs args) {
90
92
if (enableThis )
91
93
setDisablingAllowed (args .getBool (CH .INIT_DISABLING_ALLOWED , isDisablingAllowed ()));
92
94
93
- String edgeBasedCHStr = args .get (CH .PREPARE + "edge_based" , "off" );
94
- edgeBasedCHMode = EdgeBasedCHMode .valueOf (edgeBasedCHStr .trim ().toUpperCase (Locale .ROOT ));
95
+ String edgeBasedCHStr = args .get (CH .PREPARE + "edge_based" , "off" ).trim ();
96
+ edgeBasedCHStr = edgeBasedCHStr .equals ("false" ) ? "off" : edgeBasedCHStr ;
97
+ edgeBasedCHMode = EdgeBasedCHMode .valueOf (edgeBasedCHStr .toUpperCase (Locale .ROOT ));
95
98
96
99
pMap = args ;
97
100
}
You can’t perform that action at this time.
0 commit comments