This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-io.git
The following commit(s) were added to refs/heads/master by this push:
new 7d9189db Better parameter names
7d9189db is described below
commit 7d9189db0f60f7e6fc206090a2c9c55f8f18f8d7
Author: Gary Gregory <[email protected]>
AuthorDate: Sat Sep 17 13:56:45 2022 -0400
Better parameter names
---
src/main/java/org/apache/commons/io/function/IOConsumer.java | 12 ++++++------
1 file 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);
}
/**