Changeset 12291 in josm


Ignore:
Timestamp:
2017-06-01T11:24:12+02:00 (11 months 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/gui/layer/OsmDataLayer.java

    r12281 r12291  
    158158     * Returns list of recently closed relations or null if none.
    159159     * @return list of recently closed relations or <code>null</code> if none
     160     * @since 12291 (signature)
    160161     * @since 9668
    161162     */
    162     public ArrayList<Relation> getRecentRelations() {
     163    public List<Relation> getRecentRelations() {
    163164        ArrayList<Relation> list = new ArrayList<>(recentRelations.keySet());
    164165        Collections.reverse(list);
Note: See TracChangeset for help on using the changeset viewer.