Skip to content

Commit 4e2de56

Browse files
committed
back to list
1 parent b6190ed commit 4e2de56

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/main/java/org/htmlunit/attachment/CollectingAttachmentHandler.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
*/
3232
public class CollectingAttachmentHandler implements AttachmentHandler {
3333

34-
private final ArrayList<Attachment> collectedAttachments_;
34+
private final List<Attachment> collectedAttachments_;
3535

3636
/**
3737
* Creates a new instance.
@@ -46,7 +46,7 @@ public CollectingAttachmentHandler() {
4646
*/
4747
public CollectingAttachmentHandler(final List<Attachment> list) {
4848
WebAssert.notNull("list", list);
49-
collectedAttachments_ = new ArrayList<>(list);
49+
collectedAttachments_ = list;
5050
}
5151

5252
/**
@@ -65,5 +65,4 @@ public void handleAttachment(final Page page) {
6565
public List<Attachment> getCollectedAttachments() {
6666
return collectedAttachments_;
6767
}
68-
6968
}

0 commit comments

Comments
 (0)