Browse Source

Remove unused EMPTY_BUFFER constant

See gh-29038
pull/29184/head
Sam Brannen 2 years ago
parent
commit
1263226928
  1. 3
      spring-web/src/main/java/org/springframework/http/codec/json/AbstractJackson2Encoder.java

3
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.codec.Hints;
import org.springframework.core.io.buffer.DataBuffer; import org.springframework.core.io.buffer.DataBuffer;
import org.springframework.core.io.buffer.DataBufferFactory; import org.springframework.core.io.buffer.DataBufferFactory;
import org.springframework.core.io.buffer.DefaultDataBufferFactory;
import org.springframework.core.log.LogFormatUtils; import org.springframework.core.log.LogFormatUtils;
import org.springframework.http.MediaType; import org.springframework.http.MediaType;
import org.springframework.http.codec.HttpMessageEncoder; 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 final byte[] EMPTY_BYTES = new byte[0];
private static DataBuffer EMPTY_BUFFER = DefaultDataBufferFactory.sharedInstance.wrap(EMPTY_BYTES);
private static final Map<String, JsonEncoding> ENCODINGS; private static final Map<String, JsonEncoding> ENCODINGS;
static { static {

Loading…
Cancel
Save