You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2022/09/13 22:48:09 UTC
[commons-io] branch master updated (014eeb02 -> 04f32cf6)
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/commons-io.git
from 014eeb02 Add missing class:
new fecf8589 Remove whitespace
new 04f32cf6 Improve code coverage
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../org/apache/commons/io/function/UncheckedIOSpliterator.java | 2 --
.../java/org/apache/commons/io/function/IOSpliteratorTest.java | 8 ++++++++
2 files changed, 8 insertions(+), 2 deletions(-)
[commons-io] 02/02: Improve code coverage
Posted by gg...@apache.org.
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
commit 04f32cf6205672140fad5f4e60e8d997957fcbc6
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Sep 13 18:48:04 2022 -0400
Improve code coverage
---
.../java/org/apache/commons/io/function/IOSpliteratorTest.java | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/test/java/org/apache/commons/io/function/IOSpliteratorTest.java b/src/test/java/org/apache/commons/io/function/IOSpliteratorTest.java
index e3cf2764..5066427a 100644
--- a/src/test/java/org/apache/commons/io/function/IOSpliteratorTest.java
+++ b/src/test/java/org/apache/commons/io/function/IOSpliteratorTest.java
@@ -84,6 +84,14 @@ public class IOSpliteratorTest {
assertEquals(newPathList(), list);
}
+ @Test
+ public void testForEachRemainingAsSpliterator() {
+ final List<Path> list = new ArrayList<>();
+ spliterator.asSpliterator().forEachRemaining(list::add);
+ assertEquals(2, list.size());
+ assertEquals(newPathList(), list);
+ }
+
@Test
public void testGetComparator() throws IOException {
if (spliterator.hasCharacteristics(Spliterator.SORTED)) {
[commons-io] 01/02: Remove whitespace
Posted by gg...@apache.org.
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
commit fecf8589975e9dcfd12cb46e56378c51599f2da3
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Sep 13 18:47:18 2022 -0400
Remove whitespace
---
.../java/org/apache/commons/io/function/UncheckedIOSpliterator.java | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/main/java/org/apache/commons/io/function/UncheckedIOSpliterator.java b/src/main/java/org/apache/commons/io/function/UncheckedIOSpliterator.java
index ad8cfd83..fae6fa61 100644
--- a/src/main/java/org/apache/commons/io/function/UncheckedIOSpliterator.java
+++ b/src/main/java/org/apache/commons/io/function/UncheckedIOSpliterator.java
@@ -80,6 +80,4 @@ final class UncheckedIOSpliterator<T> implements Spliterator<T> {
return Uncheck.get(delegate::trySplit).unwrap();
}
-
-
}