Fix amenity compare
This commit is contained in:
parent
b28c1a6e0a
commit
5fb60db786
2 changed files with 3 additions and 2 deletions
|
@ -81,7 +81,8 @@ public class BinaryInspector {
|
|||
// "-lang=ru",
|
||||
// "-bbox=30.4981,50.4424,30.5195,50.4351",
|
||||
// "-osm="+System.getProperty("maps.dir")+"/map_full_1.obf.osm",
|
||||
System.getProperty("maps.dir")+"/diff/Brazil_southamerica_01_00.obf"
|
||||
// System.getProperty("maps.dir")+"/diff/Brazil_southamerica_01_00.obf"
|
||||
System.getProperty("maps.dir")+"/diff/Diff.obf"
|
||||
// System.getProperty("maps.dir")+"/Ukraine_kiev-city_europe_2.obf"
|
||||
});
|
||||
} else {
|
||||
|
|
|
@ -257,7 +257,7 @@ public class Amenity extends MapObject {
|
|||
|
||||
|
||||
public boolean comparePoi(Amenity thatObj) {
|
||||
if (this.id == thatObj.id &&
|
||||
if (this.id.longValue() == thatObj.id.longValue() &&
|
||||
Algorithms.objectEquals(this.type.getKeyName(), thatObj.type.getKeyName()) &&
|
||||
Algorithms.objectEquals(getLocation(), thatObj.getLocation()) &&
|
||||
Algorithms.objectEquals(this.subType, thatObj.subType) &&
|
||||
|
|
Loading…
Reference in a new issue