Ignore:
Timestamp:
2018-08-31T21:59:54+02:00 (6 years ago)
Author:
Don-vip
Message:

see #16681 - spotbugs / pmd

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/gpx/GpxImageEntry.java

    r14205 r14209  
    55import java.io.IOException;
    66import java.util.Date;
     7import java.util.Objects;
    78
    89import org.openstreetmap.josm.data.coor.CachedLatLon;
     
    332333    }
    333334
     335    @Override
     336    public int hashCode() {
     337        return Objects.hash(height, width, isNewGpsData,
     338            elevation, exifCoor, exifGpsTime, exifImgDir, exifOrientation, exifTime,
     339            file, gpsTime, pos, speed, tmp);
     340    }
     341
     342    @Override
     343    public boolean equals(Object obj) {
     344        if (this == obj)
     345            return true;
     346        if (obj == null || getClass() != obj.getClass())
     347            return false;
     348        GpxImageEntry other = (GpxImageEntry) obj;
     349        return height == other.height
     350            && width == other.width
     351            && isNewGpsData == other.isNewGpsData
     352            && Objects.equals(elevation, other.elevation)
     353            && Objects.equals(exifCoor, other.exifCoor)
     354            && Objects.equals(exifGpsTime, other.exifGpsTime)
     355            && Objects.equals(exifImgDir, other.exifImgDir)
     356            && Objects.equals(exifOrientation, other.exifOrientation)
     357            && Objects.equals(exifTime, other.exifTime)
     358            && Objects.equals(file, other.file)
     359            && Objects.equals(gpsTime, other.gpsTime)
     360            && Objects.equals(pos, other.pos)
     361            && Objects.equals(speed, other.speed)
     362            && Objects.equals(tmp, other.tmp);
     363    }
     364
    334365    /**
    335366     * Make a fresh copy and save it in the temporary variable. Use
Note: See TracChangeset for help on using the changeset viewer.