Skip to content

Commit f026f95

Browse files
committed
1 parent 8171873 commit f026f95

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/main/java/org/apache/commons/io/function/IOStream.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ public T next() throws NoSuchElementException {
116116
* @param values the elements of the new stream, may be {@code null}.
117117
* @return the new stream on {@code values} or {@link Stream#empty()}.
118118
*/
119-
@SuppressWarnings("resource") // call to #empty()
120119
static <T> IOStream<T> of(final Iterable<T> values) {
121120
return values == null ? empty() : adapt(StreamSupport.stream(values.spliterator(), false));
122121
}
@@ -128,7 +127,6 @@ static <T> IOStream<T> of(final Iterable<T> values) {
128127
* @param values the elements of the new stream, may be {@code null}.
129128
* @return the new stream on {@code values} or {@link Stream#empty()}.
130129
*/
131-
@SuppressWarnings("resource")
132130
@SafeVarargs // Creating a stream from an array is safe
133131
static <T> IOStream<T> of(final T... values) {
134132
return values == null || values.length == 0 ? empty() : adapt(Arrays.stream(values));

0 commit comments

Comments
 (0)