Skip to content

Commit 42e1fc9

Browse files
committed
feat: SneakyThrowXxx throws Throwable
1 parent 7846cd5 commit 42e1fc9

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.github.lokic</groupId>
88
<artifactId>java-plus</artifactId>
9-
<version>0.0.1</version>
9+
<version>0.0.2</version>
1010
<name>java-plus</name>
1111
<description>Provide some useful extensions on the basis of core java to make java more usable.</description>
1212
<url>https://github.com/lokic/java-plus</url>

src/main/java/com/github/lokic/javaplus/func/sneakythrows/SneakyThrowConsumer1.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
@FunctionalInterface
88
public interface SneakyThrowConsumer1<T> extends Consumer<T> {
99

10-
void throwableAccept(T t) throws Exception;
10+
void throwableAccept(T t) throws Throwable;
1111

1212
@SneakyThrows
1313
@Override

src/main/java/com/github/lokic/javaplus/func/sneakythrows/SneakyThrowFunction1.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
@FunctionalInterface
88
public interface SneakyThrowFunction1<T, R> extends Function<T, R> {
99

10-
R throwableApply(T t) throws Exception;
10+
R throwableApply(T t) throws Throwable;
1111

1212
@SneakyThrows
1313
@Override

src/main/java/com/github/lokic/javaplus/func/sneakythrows/SneakyThrowFunction2.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
@FunctionalInterface
77
public interface SneakyThrowFunction2<T1, T2, R> extends TupleFunction2<T1, T2, R> {
88

9-
R throwableApply(T1 t1, T2 t2) throws Exception;
9+
R throwableApply(T1 t1, T2 t2) throws Throwable;
1010

1111
@SneakyThrows
1212
@Override

src/main/java/com/github/lokic/javaplus/func/sneakythrows/SneakyThrowFunction3.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
@FunctionalInterface
77
public interface SneakyThrowFunction3<T1, T2, T3, R> extends TupleFunction3<T1, T2, T3, R> {
88

9-
R throwableApply(T1 t1, T2 t2, T3 t3) throws Exception;
9+
R throwableApply(T1 t1, T2 t2, T3 t3) throws Throwable;
1010

1111
@SneakyThrows
1212
@Override

src/main/java/com/github/lokic/javaplus/func/sneakythrows/SneakyThrowRunnable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
@FunctionalInterface
66
public interface SneakyThrowRunnable extends Runnable {
77

8-
void throwableRun() throws Exception;
8+
void throwableRun() throws Throwable;
99

1010
@SneakyThrows
1111
@Override

src/main/java/com/github/lokic/javaplus/func/sneakythrows/SneakyThrowSupplier.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
@FunctionalInterface
88
public interface SneakyThrowSupplier<T> extends Supplier<T> {
99

10-
T throwableGet() throws Exception;
10+
T throwableGet() throws Throwable;
1111

1212
@SneakyThrows
1313
@Override

0 commit comments

Comments
 (0)