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

Sonar/FindBugs - Loose coupling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/projection/datum/NTV2GridShiftFile.java

    r6267 r6316  
    2525import java.util.ArrayList;
    2626import java.util.HashMap;
     27import java.util.List;
    2728
    2829import org.openstreetmap.josm.tools.Utils;
     
    166167    private NTV2SubGrid[] createSubGridTree(NTV2SubGrid[] subGrid) {
    167168        int topLevelCount = 0;
    168         HashMap<String, ArrayList<NTV2SubGrid>> subGridMap = new HashMap<String, ArrayList<NTV2SubGrid>>();
     169        HashMap<String, List<NTV2SubGrid>> subGridMap = new HashMap<String, List<NTV2SubGrid>>();
    169170        for (int i = 0; i < subGrid.length; i++) {
    170171            if (subGrid[i].getParentSubGridName().equalsIgnoreCase("NONE")) {
     
    179180                topLevelSubGrid[topLevelCount++] = subGrid[i];
    180181            } else {
    181                 ArrayList<NTV2SubGrid> parent = subGridMap.get(subGrid[i].getParentSubGridName());
     182                List<NTV2SubGrid> parent = subGridMap.get(subGrid[i].getParentSubGridName());
    182183                parent.add(subGrid[i]);
    183184            }
     
    185186        NTV2SubGrid[] nullArray = new NTV2SubGrid[0];
    186187        for (int i = 0; i < subGrid.length; i++) {
    187             ArrayList<NTV2SubGrid> subSubGrids = subGridMap.get(subGrid[i].getSubGridName());
     188            List<NTV2SubGrid> subSubGrids = subGridMap.get(subGrid[i].getSubGridName());
    188189            if (!subSubGrids.isEmpty()) {
    189190                NTV2SubGrid[] subGridArray = subSubGrids.toArray(nullArray);
Note: See TracChangeset for help on using the changeset viewer.