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/actions/AlignInLineAction.java

    r6246 r6316  
    3232public final class AlignInLineAction extends JosmAction {
    3333
     34    /**
     35     * Constructs a new {@code AlignInLineAction}.
     36     */
    3437    public AlignInLineAction() {
    3538        super(tr("Align Nodes in Line"), "alignline", tr("Move the selected nodes in to a line."),
     
    3942
    4043    // the joy of single return values only...
    41     private void nodePairFurthestApart(ArrayList<Node> nodes, Node[] resultOut) {
     44    private void nodePairFurthestApart(List<Node> nodes, Node[] resultOut) {
    4245        if(resultOut.length < 2)
    4346            throw new IllegalArgumentException();
     
    107110        List<Node> selectedNodes = new ArrayList<Node>(getCurrentDataSet().getSelectedNodes());
    108111        Collection<Way> selectedWays = getCurrentDataSet().getSelectedWays();
    109         ArrayList<Node> nodes = new ArrayList<Node>();
     112        List<Node> nodes = new ArrayList<Node>();
    110113
    111114        //// Decide what to align based on selection:
Note: See TracChangeset for help on using the changeset viewer.