File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
spring-batch-infrastructure/src/main/java/org/springframework/batch/item/support Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2006-2019 the original author or authors.
2
+ * Copyright 2006-2021 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
16
16
17
17
package org .springframework .batch .item .support ;
18
18
19
- import java .util .ArrayList ;
19
+ import java .util .LinkedList ;
20
20
import java .util .List ;
21
21
22
22
import org .springframework .aop .support .AopUtils ;
27
27
* An {@link ItemReader} that pulls data from a list. Useful for testing.
28
28
*
29
29
* @author Dave Syer
30
- *
30
+ * @author jojoldu
31
+ *
31
32
*/
32
33
public class ListItemReader <T > implements ItemReader <T > {
33
34
@@ -40,7 +41,7 @@ public ListItemReader(List<T> list) {
40
41
this .list = list ;
41
42
}
42
43
else {
43
- this .list = new ArrayList <>(list );
44
+ this .list = new LinkedList <>(list );
44
45
}
45
46
}
46
47
You can’t perform that action at this time.
0 commit comments