Changeset 1463 for trunk


Ignore:
Timestamp:
11/29/19 15:35:12 (4 years ago)
Author:
bnemhaus
Message:

underlying() no longer leaks! It instead returns a clone. This was in fact how it was being used anyways.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/gui/ItemsList.java

    r1434 r1463  
    8787        }       
    8888       
    89         public Collection<Item> underlying() {
    90                 return items;
     89        public List<Item> cloneList() {
     90                List<Item> ret = new ArrayList<Item>(items);
     91                return ret;
    9192        }
    9293       
Note: See TracChangeset for help on using the changeset viewer.