Title: [2064] trunk/xstream-distribution/src/content/converter-tutorial.html: Fix code snippet in tutorial.
Revision
2064
Author
joehni
Date
2013-05-13 12:00:36 -0500 (Mon, 13 May 2013)

Log Message

Fix code snippet in tutorial.

Modified Paths


Diff

Modified: trunk/xstream-distribution/src/content/converter-tutorial.html (2063 => 2064)


--- trunk/xstream-distribution/src/content/converter-tutorial.html	2013-05-13 06:52:01 UTC (rev 2063)
+++ trunk/xstream-distribution/src/content/converter-tutorial.html	2013-05-13 17:00:36 UTC (rev 2064)
@@ -1,7 +1,7 @@
 <html>
 <!--
  Copyright (C) 2006 Joe Walnes.
- Copyright (C) 2006, 2007, 2008 XStream committers.
+ Copyright (C) 2006, 2007, 2008, 2013 XStream committers.
  All rights reserved.
  
  The software in this package is published under the terms of the BSD
@@ -563,8 +563,8 @@
 
         public void marshal(Object value, HierarchicalStreamWriter writer,
                         MarshallingContext context) {
+                Birthday birthday = (Birthday)value;
                 writer.addAttribute("gender", Character.toString(birthday.getGender()));
-                Birthday birthday = (Birthday)value;
                 writer.startNode("person");
                 context.convertAnother(birthday.getPerson());
                 writer.endNode();

To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

Reply via email to