Skip to content

Commit

Permalink
Inline useless single use local variable
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed May 12, 2024
1 parent c2f6fac commit 1384688
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import java.util.Arrays;
import java.util.Collection;
import java.util.LinkedList;
import java.util.List;
import java.util.Queue;

import org.apache.commons.collections4.Predicate;
Expand Down Expand Up @@ -60,8 +59,7 @@ public Collection<E> makeConfirmedCollection() {

@Override
public Collection<E> makeConfirmedFullCollection() {
final List<E> list = new LinkedList<>(Arrays.asList(getFullElements()));
return list;
return new LinkedList<>(Arrays.asList(getFullElements()));
}

@Override
Expand Down

0 comments on commit 1384688

Please sign in to comment.