Polish SecurityJacksonModules
Issue gh-3736 * ClassLoader argument - this is required because we do not want to assume the ClassLoader that should be used * Clean up logging - logging is now at debug level because we don't expect all of the modules are loaded (they are quite possibly off the ClassPath) * Remove ObjectUtils as it was being used on methods that expect a Collection or Array with non collection based objects * Polish Javadoc warnings
This commit is contained in:
+2
-1
@@ -71,8 +71,9 @@ public class CasAuthenticationTokenMixinTests {
|
||||
}
|
||||
|
||||
ObjectMapper buildObjectMapper() {
|
||||
ClassLoader loader = getClass().getClassLoader();
|
||||
ObjectMapper mapper = new ObjectMapper();
|
||||
mapper.registerModules(SecurityJacksonModules.getModules());
|
||||
mapper.registerModules(SecurityJacksonModules.getModules(loader));
|
||||
return mapper;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user