Skip to content

Commit

Permalink
Maded default CloseableList be thread safe as most usage requires tha…
Browse files Browse the repository at this point in the history
…t anyway
  • Loading branch information
danielbodart committed Jan 30, 2015
1 parent 076ecb2 commit f9e5daa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/com/googlecode/totallylazy/collections/CloseableList.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ private static class CloseableDelegatingList<T extends Closeable> extends Delega
public CloseableDelegatingList(List<? super T> items) {super(items);}

public void close() throws IOException {
sequence(this).each(Closeables.safeClose());
clear();
sequence(delegate).each(Closeables.safeClose());
delegate.clear();
}

public T manage(T instance) {
Expand Down

0 comments on commit f9e5daa

Please sign in to comment.