|  | 
| 16 | 16 | 
 | 
| 17 | 17 | package org.springframework.security.jackson; | 
| 18 | 18 | 
 | 
| 19 |  | -import java.util.Collections; | 
| 20 |  | - | 
| 21 | 19 | import tools.jackson.core.Version; | 
| 22 | 20 | import tools.jackson.databind.cfg.MapperBuilder; | 
| 23 | 21 | import tools.jackson.databind.module.SimpleModule; | 
|  | 
| 32 | 30 | /** | 
| 33 | 31 |  * Jackson module for spring-security-core. This module register | 
| 34 | 32 |  * {@link AnonymousAuthenticationTokenMixin}, {@link RememberMeAuthenticationTokenMixin}, | 
| 35 |  | - * {@link SimpleGrantedAuthorityMixin}, {@link UnmodifiableSetMixin}, {@link UserMixin} | 
| 36 |  | - * and {@link UsernamePasswordAuthenticationTokenMixin}. If no default typing enabled by | 
|  | 33 | + * {@link SimpleGrantedAuthorityMixin}, {{@link UserMixin}, | 
|  | 34 | + * {@link UsernamePasswordAuthenticationTokenMixin} and | 
|  | 35 | + * {@link UsernamePasswordAuthenticationTokenMixin}. If no default typing enabled by | 
| 37 | 36 |  * default then it'll enable it because typing info is needed to properly | 
| 38 | 37 |  * serialize/deserialize objects. In order to use this module just add this module into | 
| 39 | 38 |  * your JsonMapper configuration. | 
| @@ -64,9 +63,6 @@ public void setupModule(SetupContext context) { | 
| 64 | 63 | 		context.setMixIn(AnonymousAuthenticationToken.class, AnonymousAuthenticationTokenMixin.class); | 
| 65 | 64 | 		context.setMixIn(RememberMeAuthenticationToken.class, RememberMeAuthenticationTokenMixin.class); | 
| 66 | 65 | 		context.setMixIn(SimpleGrantedAuthority.class, SimpleGrantedAuthorityMixin.class); | 
| 67 |  | -		context.setMixIn(Collections.unmodifiableSet(Collections.emptySet()).getClass(), UnmodifiableSetMixin.class); | 
| 68 |  | -		context.setMixIn(Collections.unmodifiableList(Collections.emptyList()).getClass(), UnmodifiableListMixin.class); | 
| 69 |  | -		context.setMixIn(Collections.unmodifiableMap(Collections.emptyMap()).getClass(), UnmodifiableMapMixin.class); | 
| 70 | 66 | 		context.setMixIn(User.class, UserMixin.class); | 
| 71 | 67 | 		context.setMixIn(UsernamePasswordAuthenticationToken.class, UsernamePasswordAuthenticationTokenMixin.class); | 
| 72 | 68 | 		context.setMixIn(BadCredentialsException.class, BadCredentialsExceptionMixin.class); | 
|  | 
0 commit comments