From f6948a096562808493b7be2b3f4948e139e5a47e Mon Sep 17 00:00:00 2001 From: Yevhen Vasyliev Date: Mon, 16 Oct 2023 12:25:34 +0300 Subject: [PATCH] removed ThrowingBiConsumer.java --- .../yvasyliev/service/ThrowingBiConsumer.java | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 src/main/java/com/github/yvasyliev/service/ThrowingBiConsumer.java diff --git a/src/main/java/com/github/yvasyliev/service/ThrowingBiConsumer.java b/src/main/java/com/github/yvasyliev/service/ThrowingBiConsumer.java deleted file mode 100644 index b906d7e..0000000 --- a/src/main/java/com/github/yvasyliev/service/ThrowingBiConsumer.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.github.yvasyliev.service; - -import java.util.function.BiConsumer; - -@FunctionalInterface -public interface ThrowingBiConsumer extends BiConsumer { - void acceptWithException(T t, U u) throws Exception; - - @Override - default void accept(T t, U u) { - try { - acceptWithException(t, u); - } catch (Exception e) { - throw new RuntimeException(e); - } - } -}