Title: [2262] branches/v-1.4.x: Deprecate BooleanConverter.shouldConvert(), relict of ancient XStream versions.
Revision
2262
Author
joehni
Date
2014-02-10 17:10:50 -0600 (Mon, 10 Feb 2014)

Log Message

Deprecate BooleanConverter.shouldConvert(), relict of ancient XStream versions.

Modified Paths

Diff

Modified: branches/v-1.4.x/xstream/src/java/com/thoughtworks/xstream/converters/basic/BooleanConverter.java (2261 => 2262)


--- branches/v-1.4.x/xstream/src/java/com/thoughtworks/xstream/converters/basic/BooleanConverter.java	2014-02-10 18:49:45 UTC (rev 2261)
+++ branches/v-1.4.x/xstream/src/java/com/thoughtworks/xstream/converters/basic/BooleanConverter.java	2014-02-10 23:10:50 UTC (rev 2262)
@@ -1,6 +1,6 @@
 /*
  * Copyright (C) 2003, 2004 Joe Walnes.
- * Copyright (C) 2006, 2007 XStream Committers.
+ * Copyright (C) 2006, 2007, 2014 XStream Committers.
  * All rights reserved.
  *
  * The software in this package is published under the terms of the BSD
@@ -41,6 +41,9 @@
         this("true", "false", false);
     }
 
+    /**
+     * @deprecated As of upcoming use {@link #canConvert(Class)}
+     */
     public boolean shouldConvert(final Class type, final Object value) {
         return true;
     }

Modified: branches/v-1.4.x/xstream-distribution/src/content/changes.html (2261 => 2262)


--- branches/v-1.4.x/xstream-distribution/src/content/changes.html	2014-02-10 18:49:45 UTC (rev 2261)
+++ branches/v-1.4.x/xstream-distribution/src/content/changes.html	2014-02-10 23:10:50 UTC (rev 2262)
@@ -37,6 +37,8 @@
     <ul>
     	<li>Deprecated c.t.x.XStream.useXStream11XmlFriendlyMapper(), corresponding
     	c.t.x.mapper.XStream11XmlFriendlyMapper has been deprecated long ago.</li>
+    	<li>Deprecated c.t.x.converter.basic.BooleanConverter.shouldConvert(Class,Object), undetected remainder of
+    	ancient XStream version.</li>
     </ul>
 
     <h1 id="1.4.7">1.4.7</h1>

To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

Reply via email to