File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed
hsweb-core/src/main/java/org/hswebframework/web/recycler Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change 4545 *
4646 * @param <T> 被包装的对象类型
4747 * @author zhouhao
48- * @since 5.0.1
4948 * @see Recycler
5049 * @see Recycler#take(boolean)
50+ * @since 5.0.1
5151 */
5252public interface Recyclable <T > extends AutoCloseable {
5353
@@ -98,11 +98,9 @@ public interface Recyclable<T> extends AutoCloseable {
9898 *
9999 * <p>默认实现直接调用 {@link #recycle()} 方法,使得可以在 try-with-resources
100100 * 语句中自动回收对象。
101- *
102- * @throws Exception 如果回收过程中发生异常
103101 */
104102 @ Override
105- default void close () throws Exception {
103+ default void close () {
106104 recycle ();
107105 }
108106}
Original file line number Diff line number Diff line change 11package org .hswebframework .web .recycler ;
22
3- import reactor .function .Function3 ;
4- import reactor .function .Function4 ;
5- import reactor .function .Function5 ;
6- import reactor .function .Function6 ;
3+ import reactor .function .*;
74
85import java .util .function .BiFunction ;
96import java .util .function .Consumer ;
You can’t perform that action at this time.
0 commit comments