From 12632269287cf596aa1a28298f160a1a68e1ae77 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Tue, 20 Sep 2022 13:48:38 +0200 Subject: [PATCH] Remove unused EMPTY_BUFFER constant See gh-29038 --- .../http/codec/json/AbstractJackson2Encoder.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/spring-web/src/main/java/org/springframework/http/codec/json/AbstractJackson2Encoder.java b/spring-web/src/main/java/org/springframework/http/codec/json/AbstractJackson2Encoder.java index c83aad25bd..d5397f71c6 100644 --- a/spring-web/src/main/java/org/springframework/http/codec/json/AbstractJackson2Encoder.java +++ b/spring-web/src/main/java/org/springframework/http/codec/json/AbstractJackson2Encoder.java @@ -47,7 +47,6 @@ import org.springframework.core.codec.EncodingException; import org.springframework.core.codec.Hints; import org.springframework.core.io.buffer.DataBuffer; import org.springframework.core.io.buffer.DataBufferFactory; -import org.springframework.core.io.buffer.DefaultDataBufferFactory; import org.springframework.core.log.LogFormatUtils; import org.springframework.http.MediaType; import org.springframework.http.codec.HttpMessageEncoder; @@ -74,8 +73,6 @@ public abstract class AbstractJackson2Encoder extends Jackson2CodecSupport imple private static final byte[] EMPTY_BYTES = new byte[0]; - private static DataBuffer EMPTY_BUFFER = DefaultDataBufferFactory.sharedInstance.wrap(EMPTY_BYTES); - private static final Map ENCODINGS; static {