Note: drop is like close, it has to be tolerant of being called more than once, it must succeed or at least not throw any exceptions.
315316317318319320321322323324325
// element from the list. for (int i = sorts.size() - 1; i >= 0; i--) { Sort sort = (Sort) sorts.get(i); if (sort != null) sort.drop(this); } sorts.clear(); freeSortIds.clear(); } }
17531754175517561757175817591760176117621763
// should call close on the sort. Sort sort = (Sort) sorts.get((int) sortid); if (sort != null) { sort.drop(this); sorts.set((int) sortid, null); freeSortIds.add(ReuseFactory.getInteger((int) sortid)); } }