Skip to content

Commit e235e66

Browse files
committed
Polishing
1 parent 09fe0ad commit e235e66

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

Diff for: spring-core/src/main/java/org/springframework/util/function/ThrowingBiFunction.java

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -85,17 +85,14 @@ default R apply(T t, U u, BiFunction<String, Exception, RuntimeException> except
8585
*/
8686
default ThrowingBiFunction<T, U, R> throwing(BiFunction<String, Exception, RuntimeException> exceptionWrapper) {
8787
return new ThrowingBiFunction<>() {
88-
8988
@Override
9089
public R applyWithException(T t, U u) throws Exception {
9190
return ThrowingBiFunction.this.applyWithException(t, u);
9291
}
93-
9492
@Override
9593
public R apply(T t, U u) {
9694
return apply(t, u, exceptionWrapper);
9795
}
98-
9996
};
10097
}
10198

Diff for: spring-core/src/main/java/org/springframework/util/function/ThrowingConsumer.java

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -77,17 +77,14 @@ default void accept(T t, BiFunction<String, Exception, RuntimeException> excepti
7777
*/
7878
default ThrowingConsumer<T> throwing(BiFunction<String, Exception, RuntimeException> exceptionWrapper) {
7979
return new ThrowingConsumer<>() {
80-
8180
@Override
8281
public void acceptWithException(T t) throws Exception {
8382
ThrowingConsumer.this.acceptWithException(t);
8483
}
85-
8684
@Override
8785
public void accept(T t) {
8886
accept(t, exceptionWrapper);
8987
}
90-
9188
};
9289
}
9390

Diff for: spring-core/src/main/java/org/springframework/util/function/ThrowingFunction.java

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -80,17 +80,14 @@ default R apply(T t, BiFunction<String, Exception, RuntimeException> exceptionWr
8080
*/
8181
default ThrowingFunction<T, R> throwing(BiFunction<String, Exception, RuntimeException> exceptionWrapper) {
8282
return new ThrowingFunction<>() {
83-
8483
@Override
8584
public R applyWithException(T t) throws Exception {
8685
return ThrowingFunction.this.applyWithException(t);
8786
}
88-
8987
@Override
9088
public R apply(T t) {
9189
return apply(t, exceptionWrapper);
9290
}
93-
9491
};
9592
}
9693

0 commit comments

Comments
 (0)