@@ -167,8 +167,8 @@ public static <D, E extends Exception> List<E> getExceptions(Try<? extends D, E>
167167 * @return a {@link Success} if no {@link Failure}'s are found in the collection
168168 * @param <U> type of data
169169 */
170- public static <U , E extends Exception , RE extends Exception > Try <Set <U >, RE > scanCollection (
171- Collection <Try <U , E >> c , Class <U > typeOfData , Function <String , RE > exceptionBuilder ) {
170+ public static <U , E extends Exception , R extends Exception > Try <Set <U >, R > scanCollection (
171+ Collection <Try <U , E >> c , Class <U > typeOfData , Function <String , R > exceptionBuilder ) {
172172 return scanStream (c .stream (), typeOfData .getSimpleName (), exceptionBuilder )
173173 .transformS (stream -> stream .collect (Collectors .toSet ()));
174174 }
@@ -183,8 +183,8 @@ public static <U, E extends Exception, RE extends Exception> Try<Set<U>, RE> sca
183183 * @return a {@link Success} if no {@link Failure}'s are found in the stream
184184 * @param <U> type of data
185185 */
186- public static <U , E extends Exception , RE extends Exception > Try <Stream <U >, RE > scanStream (
187- Stream <Try <U , E >> stream , String typeOfData , Function <String , RE > exceptionBuilder ) {
186+ public static <U , E extends Exception , R extends Exception > Try <Stream <U >, R > scanStream (
187+ Stream <Try <U , E >> stream , String typeOfData , Function <String , R > exceptionBuilder ) {
188188 Map <Boolean , List <Try <U , E >>> map = stream .collect (partitioningBy (Try ::isSuccess ));
189189
190190 List <Try <U , E >> successes = map .get (true );
0 commit comments