diff --git a/spring-oxm/src/main/java/org/springframework/oxm/castor/CastorMappingException.java b/spring-oxm/src/main/java/org/springframework/oxm/castor/CastorMappingException.java index 20be49cece..17e03f586b 100644 --- a/spring-oxm/src/main/java/org/springframework/oxm/castor/CastorMappingException.java +++ b/spring-oxm/src/main/java/org/springframework/oxm/castor/CastorMappingException.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 the original author or authors. + * Copyright 2002-2017 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. @@ -23,7 +23,9 @@ import org.springframework.oxm.XmlMappingException; * * @author Juergen Hoeller * @since 3.0 + * @deprecated as of Spring Framework 4.3.13, due to the lack of activity on the Castor project */ +@Deprecated @SuppressWarnings("serial") public class CastorMappingException extends XmlMappingException { diff --git a/spring-oxm/src/main/java/org/springframework/oxm/castor/CastorMarshaller.java b/spring-oxm/src/main/java/org/springframework/oxm/castor/CastorMarshaller.java index 391e44f31e..38f8e4d84f 100644 --- a/spring-oxm/src/main/java/org/springframework/oxm/castor/CastorMarshaller.java +++ b/spring-oxm/src/main/java/org/springframework/oxm/castor/CastorMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2014 the original author or authors. + * Copyright 2002-2017 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. @@ -72,8 +72,8 @@ import org.springframework.util.xml.StaxUtils; * can only be used to unmarshal XML that represents that specific class. If you want to unmarshal * multiple classes, you have to provide a mapping file using {@code setMappingLocations}. * - *

Due to limitations of Castor's API, it is required to set the encoding used for - * writing to output streams. It defaults to {@code UTF-8}. + *

Due to limitations of Castor's API, it is required to set the encoding used for writing + * to output streams. It defaults to {@code UTF-8}. * * @author Arjen Poutsma * @author Jakub Narloch @@ -84,7 +84,9 @@ import org.springframework.util.xml.StaxUtils; * @see #setTargetPackages(String[]) * @see #setMappingLocation(Resource) * @see #setMappingLocations(Resource[]) + * @deprecated as of Spring Framework 4.3.13, due to the lack of activity on the Castor project */ +@Deprecated public class CastorMarshaller extends AbstractMarshaller implements InitializingBean, BeanClassLoaderAware { /** diff --git a/spring-oxm/src/main/java/org/springframework/oxm/config/CastorMarshallerBeanDefinitionParser.java b/spring-oxm/src/main/java/org/springframework/oxm/config/CastorMarshallerBeanDefinitionParser.java index 36cd4bfff3..8bb23d0bca 100644 --- a/spring-oxm/src/main/java/org/springframework/oxm/config/CastorMarshallerBeanDefinitionParser.java +++ b/spring-oxm/src/main/java/org/springframework/oxm/config/CastorMarshallerBeanDefinitionParser.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2013 the original author or authors. + * Copyright 2002-2017 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. @@ -25,8 +25,10 @@ import org.springframework.beans.factory.xml.AbstractSimpleBeanDefinitionParser; * * @author Jakub Narloch * @since 3.1 + * @deprecated as of Spring Framework 4.3.13, due to the lack of activity on the Castor project */ -public class CastorMarshallerBeanDefinitionParser extends AbstractSimpleBeanDefinitionParser { +@Deprecated +class CastorMarshallerBeanDefinitionParser extends AbstractSimpleBeanDefinitionParser { @Override protected String getBeanClassName(Element element) { diff --git a/spring-oxm/src/main/resources/org/springframework/oxm/config/spring-oxm-4.3.xsd b/spring-oxm/src/main/resources/org/springframework/oxm/config/spring-oxm-4.3.xsd index db17b8ffac..8fddee9569 100644 --- a/spring-oxm/src/main/resources/org/springframework/oxm/config/spring-oxm-4.3.xsd +++ b/spring-oxm/src/main/resources/org/springframework/oxm/config/spring-oxm-4.3.xsd @@ -85,7 +85,7 @@ - Defines a Castor Marshaller. + Defines a Castor Marshaller. Deprecated as of Spring Framework 4.3.13!