Ignore:
Timestamp:
2015-12-29T19:23:48+01:00 (6 years ago)
Author:
Don-vip
Message:

use LatLon.ZERO instead of new LatLon(0, 0)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/io/OsmChangeBuilderTest.groovy

    r8510 r9214  
    4343        // should be OK
    4444        builder.start()
    45         Node n = new Node(new LatLon(0,0))
     45        Node n = new Node(LatLon.ZERO)
    4646        builder.append n
    4747        builder.finish()
     
    7373        def Changeset cs = new Changeset(1)
    7474        OsmChangeBuilder builder = new OsmChangeBuilder(cs)
    75         Node n = new Node(new LatLon(0,0))
     75        Node n = new Node(LatLon.ZERO)
    7676
    7777        builder.start()
     
    105105        OsmChangeBuilder builder = new OsmChangeBuilder(cs)
    106106        Node n = new Node(1)
    107         n.coor = new LatLon(0,0)
     107        n.coor = LatLon.ZERO
    108108        n.incomplete = false
    109109        n.modified = true
     
    139139        OsmChangeBuilder builder = new OsmChangeBuilder(cs)
    140140        Node n = new Node(1)
    141         n.coor = new LatLon(0,0)
     141        n.coor = LatLon.ZERO
    142142        n.incomplete = false
    143143        n.deleted = true
     
    174174        OsmChangeBuilder builder = new OsmChangeBuilder(cs)
    175175        Node n1 = new Node(1)
    176         n1.coor = new LatLon(0,0)
     176        n1.coor = LatLon.ZERO
    177177        n1.incomplete = false
    178178        n1.deleted = true
    179179
    180         Node n2 = new Node(new LatLon(0,0))
     180        Node n2 = new Node(LatLon.ZERO)
    181181
    182182        Node n3 = new Node(2)
    183         n3.coor = new LatLon(0,0)
     183        n3.coor = LatLon.ZERO
    184184        n3.incomplete = false
    185185        n3.modified = true
Note: See TracChangeset for help on using the changeset viewer.