We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6190ed commit 4e2de56Copy full SHA for 4e2de56
1 file changed
src/main/java/org/htmlunit/attachment/CollectingAttachmentHandler.java
@@ -31,7 +31,7 @@
31
*/
32
public class CollectingAttachmentHandler implements AttachmentHandler {
33
34
- private final ArrayList<Attachment> collectedAttachments_;
+ private final List<Attachment> collectedAttachments_;
35
36
/**
37
* Creates a new instance.
@@ -46,7 +46,7 @@ public CollectingAttachmentHandler() {
46
47
public CollectingAttachmentHandler(final List<Attachment> list) {
48
WebAssert.notNull("list", list);
49
- collectedAttachments_ = new ArrayList<>(list);
+ collectedAttachments_ = list;
50
}
51
52
@@ -65,5 +65,4 @@ public void handleAttachment(final Page page) {
65
public List<Attachment> getCollectedAttachments() {
66
return collectedAttachments_;
67
68
-
69
0 commit comments