Permalink
Browse files

Tidy imports

  • Loading branch information...
1 parent 0b36aef commit b3da6d2fb3d80146a39f4641ee86a5b8c3f5666a @dsyer dsyer committed Feb 22, 2013
@@ -13,19 +13,20 @@
package org.springframework.security.oauth2.common;
-import com.fasterxml.jackson.core.JsonParser;
-import com.fasterxml.jackson.core.JsonProcessingException;
-import com.fasterxml.jackson.core.JsonToken;
-import com.fasterxml.jackson.databind.DeserializationContext;
-import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
-import org.springframework.security.oauth2.common.util.OAuth2Utils;
-
import java.io.IOException;
import java.util.Date;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Set;
+import org.springframework.security.oauth2.common.util.OAuth2Utils;
+
+import com.fasterxml.jackson.core.JsonParser;
+import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.core.JsonToken;
+import com.fasterxml.jackson.databind.DeserializationContext;
+import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
+
/**
* <p>
* Provides the ability to deserialize JSON response into an {@link org.springframework.security.oauth2.common.OAuth2AccessToken} with jackson2 by implementing
@@ -40,7 +41,6 @@
* @author Brian Clozel
* @see org.springframework.security.oauth2.common.OAuth2AccessTokenJackson2Serializer
*/
-@SuppressWarnings("deprecation")
public final class OAuth2AccessTokenJackson2Deserializer extends StdDeserializer<OAuth2AccessToken> {
public OAuth2AccessTokenJackson2Deserializer() {
@@ -12,17 +12,18 @@
*/
package org.springframework.security.oauth2.common;
-import com.fasterxml.jackson.core.JsonGenerationException;
-import com.fasterxml.jackson.core.JsonGenerator;
-import com.fasterxml.jackson.databind.SerializerProvider;
-import com.fasterxml.jackson.databind.ser.std.StdSerializer;
-import org.springframework.util.Assert;
-
import java.io.IOException;
import java.util.Date;
import java.util.Map;
import java.util.Set;
+import org.springframework.util.Assert;
+
+import com.fasterxml.jackson.core.JsonGenerationException;
+import com.fasterxml.jackson.core.JsonGenerator;
+import com.fasterxml.jackson.databind.SerializerProvider;
+import com.fasterxml.jackson.databind.ser.std.StdSerializer;
+
/**
* Provides the ability to serialize an {@link org.springframework.security.oauth2.common.OAuth2AccessToken} with jackson2 by implementing {@link com.fasterxml.jackson.databind.JsonDeserializer}.
* Refer to {@link org.springframework.security.oauth2.common.OAuth2AccessTokenJackson1Deserializer} to learn more about the JSON format that is used.
@@ -31,7 +32,6 @@
* @author Brian Clozel
* @see org.springframework.security.oauth2.common.OAuth2AccessTokenJackson2Deserializer
*/
-@SuppressWarnings("deprecation")
public final class OAuth2AccessTokenJackson2Serializer extends StdSerializer<OAuth2AccessToken> {
public OAuth2AccessTokenJackson2Serializer() {
@@ -1,10 +1,5 @@
package org.springframework.security.oauth2.common.exceptions;
-import org.springframework.security.oauth2.common.OAuth2AccessTokenJackson1Deserializer;
-import org.springframework.security.oauth2.common.OAuth2AccessTokenJackson1Serializer;
-import org.springframework.security.oauth2.common.OAuth2AccessTokenJackson2Deserializer;
-import org.springframework.security.oauth2.common.OAuth2AccessTokenJackson2Serializer;
-
import java.util.Map;
import java.util.Set;
import java.util.TreeMap;
@@ -12,14 +12,13 @@
*/
package org.springframework.security.oauth2.common.exceptions;
-import com.fasterxml.jackson.core.JsonGenerationException;
+import java.io.IOException;
+import java.util.Map.Entry;
+
import com.fasterxml.jackson.core.JsonGenerator;
+import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.SerializerProvider;
import com.fasterxml.jackson.databind.ser.std.StdSerializer;
-import com.fasterxml.jackson.core.JsonProcessingException;
-
-import java.io.IOException;
-import java.util.Map.Entry;
/**
* @author Brian Clozel
@@ -23,7 +23,6 @@
import java.util.Set;
import java.util.TreeSet;
-import org.codehaus.jackson.map.ObjectMapper;
import org.junit.Before;
import org.junit.Rule;
import org.junit.rules.ExpectedException;

0 comments on commit b3da6d2

Please sign in to comment.