Changeset 12269 in josm


Ignore:
Timestamp:
2017-05-28T19:43:08+02:00 (2 years ago)
Author:
Don-vip
Message:

sonar - squid:S1319 - Declarations should use Java collection interfaces such as "List" rather than specific implementation classes such as "ArrayList"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/ListeningCollection.java

    r12267 r12269  
    33
    44import java.util.AbstractCollection;
    5 import java.util.ArrayList;
    65import java.util.Iterator;
     6import java.util.List;
    77
    88/**
     
    1515 */
    1616public class ListeningCollection<T> extends AbstractCollection<T> {
    17     private final ArrayList<T> base;
     17    private final List<T> base;
    1818    private final Runnable runOnModification;
    1919
     
    2222     * @param base base collection
    2323     * @param runOnModification runnable run at each modification
     24     * @since 12269
    2425     */
    25     public ListeningCollection(ArrayList<T> base, Runnable runOnModification) {
     26    public ListeningCollection(List<T> base, Runnable runOnModification) {
    2627        this.base = base;
    2728        this.runOnModification = runOnModification;
Note: See TracChangeset for help on using the changeset viewer.