We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 42727a2 + 5a6f546 commit 18a3921Copy full SHA for 18a3921
1 file changed
src/main/java/com/flowpowered/commons/LogicUtil.java
@@ -36,7 +36,7 @@ public class LogicUtil {
36
* @return the input collection
37
*/
38
public static <T extends Collection<?>> T removeDuplicates(T input) {
39
- List<Object> unique = new ArrayList<>();
+ List<Object> unique = new ArrayList<>(input.size());
40
for (Iterator<?> iter = input.iterator(); iter.hasNext(); ) {
41
Object next = iter.next();
42
if (unique.contains(next)) {
0 commit comments