decoding performance

This commit is contained in:
Arndt Brenschede 2019-06-29 10:11:59 +02:00
parent 7b4db81c78
commit 828227f59d
6 changed files with 65 additions and 46 deletions

View file

@ -46,7 +46,7 @@ public class OsmNode extends OsmLink implements OsmPos
/**
* The links to other nodes
*/
public OsmLink firstlink = null;
public OsmLink firstlink;
public OsmNode()
{
@ -303,12 +303,7 @@ public class OsmNode extends OsmLink implements OsmPos
@Override
public final boolean equals( Object o )
{
if ( o instanceof OsmNode )
{
OsmNode n = (OsmNode) o;
return n.ilon == ilon && n.ilat == ilat;
}
return false;
return ((OsmNode)o).ilon == ilon && ((OsmNode)o).ilat == ilat;
}
@Override