Skip to content

Commit

Permalink
CarFlagEncoder: avoid reference comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
karussell committed Feb 25, 2020
1 parent bce7174 commit e1a3404
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public void createEncodedValues(List<EncodedValue> registerNewEncodedValue, Stri
protected double getSpeed(ReaderWay way) {
String highwayValue = way.getTag("highway");
if (!Helper.isEmpty(highwayValue) && way.hasTag("motorroad", "yes")
&& highwayValue != "motorway" && highwayValue != "motorway_link") {
&& !"motorway".equals(highwayValue) && !"motorway_link".equals(highwayValue)) {
highwayValue = "motorroad";
}
Integer speed = defaultSpeedMap.get(highwayValue);
Expand Down

0 comments on commit e1a3404

Please sign in to comment.