squid:S1319 - Declarations should use Java collection interfaces such as List rather than specific implementation classes such as LinkedList
This commit is contained in:
@ -101,7 +101,7 @@ public interface FluentIterable<E> extends Iterable<E> {
|
||||
* @return a list with all objects of the given iterator
|
||||
*/
|
||||
static <E> List<E> copyToList(Iterable<E> iterable) {
|
||||
ArrayList<E> copy = new ArrayList<>();
|
||||
List<E> copy = new ArrayList<>();
|
||||
Iterator<E> iterator = iterable.iterator();
|
||||
while (iterator.hasNext()) {
|
||||
copy.add(iterator.next());
|
||||
|
Reference in New Issue
Block a user