Delete unused imports

master
Sam Brannen 7 years ago
parent 95f7180298
commit 24adc7d3c6
  1. 4
      spring-web/src/main/java/org/springframework/http/codec/json/Jackson2SmileDecoder.java
  2. 1
      spring-web/src/main/java/org/springframework/http/codec/json/Jackson2SmileEncoder.java
  3. 3
      spring-web/src/main/java/org/springframework/http/server/reactive/ReactorServerHttpRequest.java
  4. 1
      spring-web/src/test/java/org/springframework/http/codec/json/Jackson2SmileDecoderTests.java
  5. 1
      spring-web/src/test/java/org/springframework/http/codec/json/Jackson2SmileEncoderTests.java
  6. 3
      spring-web/src/test/java/org/springframework/web/server/session/InMemoryWebSessionStoreTests.java

@ -17,14 +17,10 @@
package org.springframework.http.codec.json;
import java.nio.charset.StandardCharsets;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.dataformat.smile.SmileFactory;
import org.springframework.http.MediaType;
import org.springframework.http.converter.json.Jackson2ObjectMapperBuilder;
import org.springframework.util.Assert;
import org.springframework.util.MimeType;

@ -17,7 +17,6 @@
package org.springframework.http.codec.json;
import java.nio.charset.StandardCharsets;
import java.util.Collections;
import java.util.List;
import com.fasterxml.jackson.databind.ObjectMapper;

@ -1,5 +1,5 @@
/*
* Copyright 2002-2017 the original author or authors.
* Copyright 2002-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -36,7 +36,6 @@ import org.springframework.lang.Nullable;
import org.springframework.util.Assert;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
import org.springframework.util.StringUtils;
/**
* Adapt {@link ServerHttpRequest} to the Reactor {@link HttpServerRequest}.

@ -38,7 +38,6 @@ import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.springframework.core.ResolvableType.forClass;
import static org.springframework.http.MediaType.APPLICATION_JSON;
import static org.springframework.http.MediaType.APPLICATION_STREAM_JSON;
/**
* Unit tests for {@link Jackson2SmileDecoder}.

@ -30,7 +30,6 @@ import org.springframework.core.io.buffer.AbstractDataBufferAllocatingTestCase;
import org.springframework.core.io.buffer.DataBuffer;
import org.springframework.core.io.buffer.DataBufferUtils;
import org.springframework.core.io.buffer.support.DataBufferTestUtils;
import org.springframework.http.MediaType;
import org.springframework.http.codec.Pojo;
import org.springframework.http.codec.ServerSentEvent;
import org.springframework.http.converter.json.Jackson2ObjectMapperBuilder;

@ -1,5 +1,5 @@
/*
* Copyright 2002-2017 the original author or authors.
* Copyright 2002-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -21,7 +21,6 @@ import java.time.Instant;
import org.junit.Test;
import org.springframework.util.Assert;
import org.springframework.web.server.WebSession;
import static junit.framework.TestCase.assertSame;

Loading…
Cancel
Save