Skip to content

Commit

Permalink
Fix some whitespace and imports
Browse files Browse the repository at this point in the history
  • Loading branch information
easbar committed Jan 19, 2020
1 parent 85f8801 commit 9f6a41b
Show file tree
Hide file tree
Showing 16 changed files with 23 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import com.graphhopper.routing.profiles.EncodedValueLookup;
import com.graphhopper.routing.profiles.EnumEncodedValue;
import com.graphhopper.routing.profiles.RouteNetwork;
import com.graphhopper.routing.util.EncodingManager;
import com.graphhopper.storage.IntsRef;
import com.graphhopper.util.Helper;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import com.graphhopper.routing.profiles.EncodedValue;
import com.graphhopper.routing.profiles.EncodedValueLookup;
import com.graphhopper.routing.profiles.GetOffBike;
import com.graphhopper.routing.util.EncodingManager;
import com.graphhopper.storage.IntsRef;

import java.util.Arrays;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import com.graphhopper.routing.profiles.EncodedValueLookup;
import com.graphhopper.routing.profiles.EnumEncodedValue;
import com.graphhopper.routing.profiles.HazmatTunnel;
import com.graphhopper.routing.util.EncodingManager.Access;
import com.graphhopper.storage.IntsRef;

import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import com.graphhopper.routing.profiles.EncodedValue;
import com.graphhopper.routing.profiles.EncodedValueLookup;
import com.graphhopper.routing.profiles.MaxAxleLoad;
import com.graphhopper.routing.util.EncodingManager;
import com.graphhopper.routing.util.parsers.helpers.OSMValueExtractor;
import com.graphhopper.storage.IntsRef;

Expand All @@ -36,7 +35,7 @@ public class OSMMaxAxleLoadParser implements TagParser {
public OSMMaxAxleLoadParser() {
this(MaxAxleLoad.create());
}

public OSMMaxAxleLoadParser(DecimalEncodedValue maxAxleLoadEncoder) {
this.maxAxleLoadEncoder = maxAxleLoadEncoder;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import com.graphhopper.routing.profiles.EncodedValue;
import com.graphhopper.routing.profiles.EncodedValueLookup;
import com.graphhopper.routing.profiles.MaxHeight;
import com.graphhopper.routing.util.EncodingManager;
import com.graphhopper.routing.util.parsers.helpers.OSMValueExtractor;
import com.graphhopper.storage.IntsRef;

Expand All @@ -36,7 +35,7 @@ public class OSMMaxHeightParser implements TagParser {
public OSMMaxHeightParser() {
this(MaxHeight.create());
}

public OSMMaxHeightParser(DecimalEncodedValue heightEncoder) {
this.heightEncoder = heightEncoder;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import com.graphhopper.routing.profiles.EncodedValue;
import com.graphhopper.routing.profiles.EncodedValueLookup;
import com.graphhopper.routing.profiles.MaxLength;
import com.graphhopper.routing.util.EncodingManager;
import com.graphhopper.routing.util.parsers.helpers.OSMValueExtractor;
import com.graphhopper.storage.IntsRef;

Expand All @@ -36,7 +35,7 @@ public class OSMMaxLengthParser implements TagParser {
public OSMMaxLengthParser() {
this(MaxLength.create());
}

public OSMMaxLengthParser(DecimalEncodedValue lengthEncoder) {
this.lengthEncoder = lengthEncoder;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import com.graphhopper.routing.profiles.EncodedValueLookup;
import com.graphhopper.routing.profiles.EnumEncodedValue;
import com.graphhopper.routing.profiles.RoadEnvironment;
import com.graphhopper.routing.util.EncodingManager;
import com.graphhopper.storage.IntsRef;

import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import com.graphhopper.routing.profiles.EncodedValueLookup;
import com.graphhopper.routing.profiles.EnumEncodedValue;
import com.graphhopper.routing.profiles.Surface;
import com.graphhopper.routing.util.EncodingManager;
import com.graphhopper.storage.IntsRef;
import com.graphhopper.util.Helper;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import com.graphhopper.reader.ReaderWay;
import com.graphhopper.routing.profiles.EncodedValue;
import com.graphhopper.routing.profiles.EncodedValueLookup;
import com.graphhopper.routing.util.EncodingManager;
import com.graphhopper.storage.IntsRef;

import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
* @author Peter Karich
*/
public interface Weighting {

int INFINITE_U_TURN_COSTS = -1;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
package com.graphhopper.routing.util.parsers;

import static com.graphhopper.routing.util.EncodingManager.Access.WAY;
import static org.junit.Assert.assertEquals;

import org.junit.Before;
import org.junit.Test;

import com.graphhopper.reader.ReaderWay;
import com.graphhopper.routing.profiles.EnumEncodedValue;
import com.graphhopper.routing.profiles.HazmatTunnel;
import com.graphhopper.routing.util.EncodingManager;
import com.graphhopper.storage.IntsRef;
import org.junit.Before;
import org.junit.Test;

import static org.junit.Assert.assertEquals;

public class OSMHazmatTunnelParserTest {

Expand All @@ -34,7 +32,7 @@ public void testADRTunnelCat() {
readerWay.setTag("hazmat:adr_tunnel_cat", "A");
parser.handleWayTags(intsRef, readerWay, false, relFlags);
assertEquals(HazmatTunnel.A, hazTunnelEnc.getEnum(false, intsRef));

intsRef = em.createEdgeFlags();
readerWay = new ReaderWay(1);
readerWay.setTag("hazmat:adr_tunnel_cat", "B");
Expand Down Expand Up @@ -67,7 +65,7 @@ public void testTunnelCat() {
readerWay.setTag("hazmat:tunnel_cat", "A");
parser.handleWayTags(intsRef, readerWay, false, relFlags);
assertEquals(HazmatTunnel.A, hazTunnelEnc.getEnum(false, intsRef));

intsRef = em.createEdgeFlags();
readerWay = new ReaderWay(1);
readerWay.setTag("hazmat:tunnel_cat", "B");
Expand Down Expand Up @@ -101,7 +99,7 @@ public void testHazmatSubtags() {
readerWay.setTag("hazmat:A", "no");
parser.handleWayTags(intsRef, readerWay, false, relFlags);
assertEquals(HazmatTunnel.A, hazTunnelEnc.getEnum(false, intsRef));

intsRef = em.createEdgeFlags();
readerWay = new ReaderWay(1);
readerWay.setTag("tunnel", "yes");
Expand Down Expand Up @@ -130,7 +128,7 @@ public void testHazmatSubtags() {
parser.handleWayTags(intsRef, readerWay, false, relFlags);
assertEquals(HazmatTunnel.E, hazTunnelEnc.getEnum(false, intsRef));
}

@Test
public void testOrder() {
IntsRef intsRef = em.createEdgeFlags();
Expand All @@ -143,7 +141,7 @@ public void testOrder() {
readerWay.setTag("hazmat:E", "no");
parser.handleWayTags(intsRef, readerWay, false, relFlags);
assertEquals(HazmatTunnel.E, hazTunnelEnc.getEnum(false, intsRef));

intsRef = em.createEdgeFlags();
readerWay = new ReaderWay(1);
readerWay.setTag("tunnel", "yes");
Expand All @@ -152,7 +150,7 @@ public void testOrder() {
readerWay.setTag("hazmat:C", "no");
parser.handleWayTags(intsRef, readerWay, false, relFlags);
assertEquals(HazmatTunnel.C, hazTunnelEnc.getEnum(false, intsRef));

intsRef = em.createEdgeFlags();
readerWay = new ReaderWay(1);
readerWay.setTag("tunnel", "yes");
Expand All @@ -161,7 +159,7 @@ public void testOrder() {
parser.handleWayTags(intsRef, readerWay, false, relFlags);
assertEquals(HazmatTunnel.E, hazTunnelEnc.getEnum(false, intsRef));
}

@Test
public void testIgnoreNonTunnelSubtags() {
IntsRef intsRef = em.createEdgeFlags();
Expand All @@ -170,7 +168,7 @@ public void testIgnoreNonTunnelSubtags() {
parser.handleWayTags(intsRef, readerWay, false, relFlags);
assertEquals(HazmatTunnel.A, hazTunnelEnc.getEnum(false, intsRef));
}

@Test
public void testNoNPE() {
ReaderWay readerWay = new ReaderWay(1);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
package com.graphhopper.routing.util.parsers;

import static com.graphhopper.routing.util.EncodingManager.Access.WAY;
import static org.junit.Assert.assertEquals;

import org.junit.Before;
import org.junit.Test;

import com.graphhopper.reader.ReaderWay;
import com.graphhopper.routing.profiles.EnumEncodedValue;
import com.graphhopper.routing.profiles.HazmatWater;
import com.graphhopper.routing.util.EncodingManager;
import com.graphhopper.storage.IntsRef;
import org.junit.Before;
import org.junit.Test;

import static org.junit.Assert.assertEquals;

public class OSMHazmatWaterParserTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import org.junit.Before;
import org.junit.Test;

import static com.graphhopper.routing.util.EncodingManager.Access.WAY;
import static org.junit.Assert.assertEquals;

public class OSMMaxWeightParserTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import org.junit.Before;
import org.junit.Test;

import static com.graphhopper.routing.util.EncodingManager.Access.WAY;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
package com.graphhopper.routing.util.parsers;

import static com.graphhopper.routing.util.EncodingManager.Access.WAY;
import static org.junit.Assert.assertEquals;

import org.junit.Before;
import org.junit.Test;

import com.graphhopper.reader.ReaderWay;
import com.graphhopper.routing.profiles.EnumEncodedValue;
import com.graphhopper.routing.profiles.TrackType;
import com.graphhopper.routing.util.EncodingManager;
import com.graphhopper.storage.IntsRef;
import org.junit.Before;
import org.junit.Test;

import static org.junit.Assert.assertEquals;

public class OSMTrackTypeParserTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
import com.graphhopper.routing.util.parsers.OSMMaxHeightParser;
import com.graphhopper.routing.util.parsers.OSMMaxWeightParser;
import com.graphhopper.routing.util.parsers.OSMMaxWidthParser;
import com.graphhopper.routing.util.parsers.OSMRoadClassParser;
import com.graphhopper.storage.*;
import com.graphhopper.storage.index.LocationIndex;
import com.graphhopper.storage.index.QueryResult;
Expand Down

0 comments on commit 9f6a41b

Please sign in to comment.