Changeset 9384 in josm for trunk/src/org


Ignore:
Timestamp:
2016-01-10T13:04:11+01:00 (8 years ago)
Author:
simon04
Message:

Add unit test for CorrelateGpxWithImages

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/coor/LatLon.java

    r9375 r9384  
    435435    public boolean equals(Object obj) {
    436436        if (this == obj) return true;
    437         if (obj == null || getClass() != obj.getClass()) return false;
     437        if (!(obj instanceof LatLon)) return false;
    438438        LatLon that = (LatLon) obj;
    439439        return Double.compare(that.x, x) == 0 &&
  • trunk/src/org/openstreetmap/josm/gui/layer/geoimage/CorrelateGpxWithImages.java

    r9383 r9384  
    11461146     * @return number of matched points
    11471147     */
    1148     private int matchGpxTrack(List<ImageEntry> images, GpxData selectedGpx, long offset) {
     1148    static int matchGpxTrack(List<ImageEntry> images, GpxData selectedGpx, long offset) {
    11491149        int ret = 0;
    11501150
     
    11891189    }
    11901190
    1191     private int matchPoints(List<ImageEntry> images, WayPoint prevWp, long prevWpTime,
     1191    static int matchPoints(List<ImageEntry> images, WayPoint prevWp, long prevWpTime,
    11921192            WayPoint curWp, long curWpTime, long offset) {
    11931193        // Time between the track point and the previous one, 5 sec if first point, i.e. photos take
Note: See TracChangeset for help on using the changeset viewer.