diff --git a/src/main/java/org/apache/commons/collections4/IterableUtils.java b/src/main/java/org/apache/commons/collections4/IterableUtils.java index 448de58f9..54ba8e6d0 100644 --- a/src/main/java/org/apache/commons/collections4/IterableUtils.java +++ b/src/main/java/org/apache/commons/collections4/IterableUtils.java @@ -678,7 +678,7 @@ public class IterableUtils { if (predicates.length < 1) { // return the entire input collection as a single partition - final R singlePartition = partitionFactory.create(); + final R singlePartition = partitionFactory.get(); CollectionUtils.addAll(singlePartition, iterable); return Collections.singletonList(singlePartition); } @@ -688,7 +688,7 @@ public class IterableUtils { final int numberOfPartitions = numberOfPredicates + 1; final List partitions = new ArrayList<>(numberOfPartitions); for (int i = 0; i < numberOfPartitions; ++i) { - partitions.add(partitionFactory.create()); + partitions.add(partitionFactory.get()); } // for each element in inputCollection: diff --git a/src/main/java/org/apache/commons/collections4/functors/CloneTransformer.java b/src/main/java/org/apache/commons/collections4/functors/CloneTransformer.java index 50c0b0465..ca1d3f28d 100644 --- a/src/main/java/org/apache/commons/collections4/functors/CloneTransformer.java +++ b/src/main/java/org/apache/commons/collections4/functors/CloneTransformer.java @@ -66,7 +66,7 @@ public class CloneTransformer implements Transformer { if (input == null) { return null; } - return PrototypeFactory.prototypeFactory(input).create(); + return PrototypeFactory.prototypeFactory(input).get(); } } diff --git a/src/main/java/org/apache/commons/collections4/functors/FactoryTransformer.java b/src/main/java/org/apache/commons/collections4/functors/FactoryTransformer.java index 4f7605646..107bc96e1 100644 --- a/src/main/java/org/apache/commons/collections4/functors/FactoryTransformer.java +++ b/src/main/java/org/apache/commons/collections4/functors/FactoryTransformer.java @@ -77,7 +77,7 @@ public class FactoryTransformer implements Transformer, Serializable */ @Override public O transform(final I input) { - return iFactory.create(); + return iFactory.get(); } } diff --git a/src/main/java/org/apache/commons/collections4/list/LazyList.java b/src/main/java/org/apache/commons/collections4/list/LazyList.java index f020b59ba..3add8c96f 100644 --- a/src/main/java/org/apache/commons/collections4/list/LazyList.java +++ b/src/main/java/org/apache/commons/collections4/list/LazyList.java @@ -131,7 +131,7 @@ public class LazyList extends AbstractSerializableListDecorator { private E element(final int index) { if (factory != null) { - return factory.create(); + return factory.get(); } if (transformer != null) { return transformer.transform(index);