Ignore:
Timestamp:
2013-10-07T20:18:17+02:00 (11 years ago)
Author:
Don-vip
Message:

Sonar/FindBugs - Loose coupling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/geoimage/CorrelateGpxWithImages.java

    r6310 r6316  
    810810
    811811            // Construct a list of images that have a date, and sort them on the date.
    812             ArrayList<ImageEntry> dateImgLst = getSortedImgList();
     812            List<ImageEntry> dateImgLst = getSortedImgList();
    813813            // Create a temporary copy for each image
    814814            for (ImageEntry ie : dateImgLst) {
     
    988988            GpxData gpx = gpxW.data;
    989989
    990             ArrayList<ImageEntry> imgs = getSortedImgList();
     990            List<ImageEntry> imgs = getSortedImgList();
    991991            PrimaryDateParser dateParser = new PrimaryDateParser();
    992992
     
    10601060    }
    10611061
    1062     private ArrayList<ImageEntry> getSortedImgList() {
     1062    private List<ImageEntry> getSortedImgList() {
    10631063        return getSortedImgList(cbExifImg.isSelected(), cbTaggedImg.isSelected());
    10641064    }
     
    10711071     * @return matching images
    10721072     */
    1073     private ArrayList<ImageEntry> getSortedImgList(boolean exif, boolean tagged) {
    1074         ArrayList<ImageEntry> dateImgLst = new ArrayList<ImageEntry>(yLayer.data.size());
     1073    private List<ImageEntry> getSortedImgList(boolean exif, boolean tagged) {
     1074        List<ImageEntry> dateImgLst = new ArrayList<ImageEntry>(yLayer.data.size());
    10751075        for (ImageEntry e : yLayer.data) {
    10761076            if (e.getExifTime() == null) {
     
    11201120     * All images need a exifTime attribute and the List must be sorted according to these times.
    11211121     */
    1122     private int matchGpxTrack(ArrayList<ImageEntry> images, GpxData selectedGpx, long offset) {
     1122    private int matchGpxTrack(List<ImageEntry> images, GpxData selectedGpx, long offset) {
    11231123        int ret = 0;
    11241124
     
    11591159    }
    11601160
    1161     private int matchPoints(ArrayList<ImageEntry> images, WayPoint prevWp, long prevWpTime,
     1161    private int matchPoints(List<ImageEntry> images, WayPoint prevWp, long prevWpTime,
    11621162            WayPoint curWp, long curWpTime, long offset) {
    11631163        // Time between the track point and the previous one, 5 sec if first point, i.e. photos take
     
    12461246    }
    12471247
    1248     private int getLastIndexOfListBefore(ArrayList<ImageEntry> images, long searchedTime) {
     1248    private int getLastIndexOfListBefore(List<ImageEntry> images, long searchedTime) {
    12491249        int lstSize= images.size();
    12501250
Note: See TracChangeset for help on using the changeset viewer.