Skip to content

Commit

Permalink
Make the list of streams final in CompositeItemStream
Browse files Browse the repository at this point in the history
Resolves BATCH-1969
  • Loading branch information
fmbenhassine committed Oct 21, 2019
1 parent 119ed55 commit 43b31ae
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@
*/
public class CompositeItemStream implements ItemStream {

private List<ItemStream> streams = new ArrayList<>();
private final List<ItemStream> streams = new ArrayList<>();

/**
* Public setter for the {@link ItemStream}s.
*
* @param streams array of {@link ItemStream}.
*/
public void setStreams(ItemStream[] streams) {
this.streams = Arrays.asList(streams);
this.streams.addAll(Arrays.asList(streams));
}

/**
Expand Down

0 comments on commit 43b31ae

Please sign in to comment.