未验证 提交 6357c27a 编写于 作者: J Jake Wharton 提交者: GitHub

Merge pull request #2610 from square/jwilson.0110.deprecate_simple_xml

Deprecate our SimpleXmlConverterFactory
Simple XML Converter
====================
Deprecated – Please switch to the JAXB Converter
------------------------------------------------
The Simple XML project is no longer maintained. We recommend switching to the
[JAXB converter](https://github.com/square/retrofit/tree/master/retrofit-converters/jaxb).
-----
A `Converter` which uses [Simple][1] for XML serialization.
A default `Serializer` instance will be created or one can be configured and passed to the
......
......@@ -29,7 +29,10 @@ import retrofit2.Retrofit;
* <p>
* This converter only applies for class types. Parameterized types (e.g., {@code List<Foo>}) are
* not handled.
*
* @deprecated we recommend switching to the JAXB converter.
*/
@Deprecated
public final class SimpleXmlConverterFactory extends Converter.Factory {
/** Create an instance using a default {@link Persister} instance for conversion. */
public static SimpleXmlConverterFactory create() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册