aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
authorGary Gregory <gardgregory@gmail.com>2022-09-17 13:56:45 -0400
committerGary Gregory <gardgregory@gmail.com>2022-09-17 13:56:45 -0400
commit7d9189db0f60f7e6fc206090a2c9c55f8f18f8d7 (patch)
treeb061669aaeaa6e7bc8605d11878e29cde1a365d3 /src/main/java/org
parentc81bb87676a99af173aaaf9f84f267f97fd04b84 (diff)
downloadapache-commons-io-7d9189db0f60f7e6fc206090a2c9c55f8f18f8d7.tar.gz
Better parameter names
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/apache/commons/io/function/IOConsumer.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/org/apache/commons/io/function/IOConsumer.java b/src/main/java/org/apache/commons/io/function/IOConsumer.java
index 32c5d099..d65b2a18 100644
--- a/src/main/java/org/apache/commons/io/function/IOConsumer.java
+++ b/src/main/java/org/apache/commons/io/function/IOConsumer.java
@@ -43,14 +43,14 @@ public interface IOConsumer<T> {
/**
* Performs an action for each element of the collection gathering any exceptions.
* @param action The action to apply to each input element.
- * @param collection The input to stream.
+ * @param iterable The input to stream.
*
* @param <T> The element type.
* @throws IOExceptionList if any I/O errors occur.
* @since 2.12.0
*/
- static <T> void forAll(final IOConsumer<T> action, final Iterable<T> collection) throws IOExceptionList {
- IOStreams.forAll(IOStreams.of(collection), action);
+ static <T> void forAll(final IOConsumer<T> action, final Iterable<T> iterable) throws IOExceptionList {
+ IOStreams.forAll(IOStreams.of(iterable), action);
}
/**
@@ -84,13 +84,13 @@ public interface IOConsumer<T> {
* Performs an action for each element of the collection, stopping at the first exception.
*
* @param <T> The element type.
- * @param collection The input to stream.
+ * @param iterable The input to stream.
* @param action The action to apply to each input element.
* @throws IOException if an I/O error occurs.
* @since 2.12.0
*/
- static <T> void forEach(final Iterable<T> collection, final IOConsumer<T> action) throws IOException {
- IOStreams.forEach(IOStreams.of(collection), action);
+ static <T> void forEach(final Iterable<T> iterable, final IOConsumer<T> action) throws IOException {
+ IOStreams.forEach(IOStreams.of(iterable), action);
}
/**