File tree Expand file tree Collapse file tree
src/main/java/org/apache/commons/io/function Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ));
You can’t perform that action at this time.
0 commit comments