diff --git a/spring-web/src/main/java/org/springframework/http/converter/json/Jackson2ObjectMapperBuilder.java b/spring-web/src/main/java/org/springframework/http/converter/json/Jackson2ObjectMapperBuilder.java index 5c803b236d9..290c32a4eeb 100644 --- a/spring-web/src/main/java/org/springframework/http/converter/json/Jackson2ObjectMapperBuilder.java +++ b/spring-web/src/main/java/org/springframework/http/converter/json/Jackson2ObjectMapperBuilder.java @@ -66,7 +66,7 @@ import org.springframework.util.StringUtils; *
Note that Jackson's JSR-310 and Joda-Time support modules will be registered automatically * when available (and when Java 8 and Joda-Time themselves are available, respectively). * - *
Tested against Jackson 2.2, 2.3 and 2.4; compatible with Jackson 2.0 and higher. + *
Tested against Jackson 2.2, 2.3, 2.4 and 2.5; compatible with Jackson 2.0 and higher. * * @author Sebastien Deleuze * @author Juergen Hoeller @@ -451,6 +451,7 @@ public class Jackson2ObjectMapperBuilder { * @see #modulesToInstall(Module...) * @see com.fasterxml.jackson.databind.Module */ + @SuppressWarnings("unchecked") public Jackson2ObjectMapperBuilder modulesToInstall(Class extends Module>... modules) { this.moduleClasses = modules; this.findWellKnownModules = true; @@ -500,6 +501,7 @@ public class Jackson2ObjectMapperBuilder { return this; } + /** * Build a new {@link ObjectMapper} instance. *
Each build operation produces an independent {@link ObjectMapper} instance. @@ -682,7 +684,6 @@ public class Jackson2ObjectMapperBuilder { * Obtain a {@link Jackson2ObjectMapperBuilder} instance in order to * build an {@link XmlMapper} instance. */ - @SuppressWarnings("unchecked") public static Jackson2ObjectMapperBuilder xml() { return new Jackson2ObjectMapperBuilder().createXmlMapper(true); } diff --git a/spring-web/src/main/java/org/springframework/http/converter/json/Jackson2ObjectMapperFactoryBean.java b/spring-web/src/main/java/org/springframework/http/converter/json/Jackson2ObjectMapperFactoryBean.java index 0058b0f74ce..dfbc96fb64c 100644 --- a/spring-web/src/main/java/org/springframework/http/converter/json/Jackson2ObjectMapperFactoryBean.java +++ b/spring-web/src/main/java/org/springframework/http/converter/json/Jackson2ObjectMapperFactoryBean.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2014 the original author or authors. + * Copyright 2002-2015 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. @@ -118,7 +118,7 @@ import org.springframework.context.ApplicationContextAware; * Note that Jackson's JSR-310 and Joda-Time support modules will be registered automatically * when available (and when Java 8 and Joda-Time themselves are available, respectively). * - *
Tested against Jackson 2.2, 2.3 and 2.4; compatible with Jackson 2.0 and higher. + *
Tested against Jackson 2.2, 2.3, 2.4 and 2.5; compatible with Jackson 2.0 and higher.
*
* @author Dmitry Katsubo
* @author Rossen Stoyanchev
@@ -346,6 +346,7 @@ public class Jackson2ObjectMapperFactoryBean implements FactoryBean