File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
spring-core/src/main/java/org/springframework/core/io/buffer Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 3939import java .util .concurrent .atomic .AtomicReference ;
4040import java .util .function .Consumer ;
4141
42- import io .netty .util .IllegalReferenceCountException ;
4342import org .apache .commons .logging .Log ;
4443import org .apache .commons .logging .LogFactory ;
4544import org .reactivestreams .Publisher ;
@@ -502,9 +501,10 @@ public static boolean release(@Nullable DataBuffer dataBuffer) {
502501 try {
503502 return pooledDataBuffer .release ();
504503 }
505- catch (IllegalReferenceCountException ex ) {
504+ catch (IllegalStateException ex ) {
505+ // Avoid dependency on Netty: IllegalReferenceCountException
506506 if (logger .isDebugEnabled ()) {
507- logger .debug ("RefCount already at 0 " , ex );
507+ logger .debug ("Failed to release PooledDataBuffer " , ex );
508508 }
509509 return false ;
510510 }
You can’t perform that action at this time.
0 commit comments