--- old/src/java.xml.bind/share/classes/javax/xml/bind/annotation/XmlRootElement.java 2015-01-29 16:25:08.957677282 +0300 +++ new/src/java.xml.bind/share/classes/javax/xml/bind/annotation/XmlRootElement.java 2015-01-29 16:25:08.893677284 +0300 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2004, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2004, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -54,7 +54,7 @@ *

This annotation can be used with the following annotations: * {@link XmlType}, {@link XmlEnum}, {@link XmlAccessorType}, * {@link XmlAccessorOrder}. - *

+ *

*

* Example 1: Associate an element with XML Schema type @@ -74,11 +74,11 @@ * * *

- *     <!-- Example: XML output -->
- *     <point>
- *       <x> 3 
- *       <y> 5 
- *     </point>
+ *     <!-- Example: XML output -->
+ *     <point>
+ *       <x> 3 </x>
+ *       <y> 5 </y>
+ *     </point>
  * 
* * The annotation causes an global element declaration to be produced @@ -86,14 +86,14 @@ * the XML schema type to which the class is mapped. * *
- *     <!-- Example: XML schema definition -->
- *     <xs:element name="point" type="point"/>
- *     <xs:complexType name="point">
- *       <xs:sequence>
- *         <xs:element name="x" type="xs:int"/>
- *         <xs:element name="y" type="xs:int"/>
- *       </xs:sequence>
- *     </xs:complexType>
+ *     <!-- Example: XML schema definition -->
+ *     <xs:element name="point" type="point"/>
+ *     <xs:complexType name="point">
+ *       <xs:sequence>
+ *         <xs:element name="x" type="xs:int"/>
+ *         <xs:element name="y" type="xs:int"/>
+ *       </xs:sequence>
+ *     </xs:complexType>
  * 
* *

@@ -114,25 +114,25 @@ * //Example: Code fragment corresponding to XML output * * marshal( new Point3D(3,5,0), System.out ); * - * <!-- Example: XML output --> - * <!-- The element name is point3D not point --> - * <point3D> - * <x>3</x> - * <y>5</y> - * <z>0</z> - * </point3D> - * - * <!-- Example: XML schema definition --> - * <xs:element name="point3D" type="point3D"/> - * <xs:complexType name="point3D"> - * <xs:complexContent> - * <xs:extension base="point"> - * <xs:sequence> - * <xs:element name="z" type="xs:int"/> - * </xs:sequence> - * </xs:extension> - * </xs:complexContent> - * </xs:complexType> + * <!-- Example: XML output --> + * <!-- The element name is point3D not point --> + * <point3D> + * <x>3</x> + * <y>5</y> + * <z>0</z> + * </point3D> + * + * <!-- Example: XML schema definition --> + * <xs:element name="point3D" type="point3D"/> + * <xs:complexType name="point3D"> + * <xs:complexContent> + * <xs:extension base="point"> + * <xs:sequence> + * <xs:element name="z" type="xs:int"/> + * </xs:sequence> + * </xs:extension> + * </xs:complexContent> + * </xs:complexType> * * * Example 3: Associate a global element with XML Schema type @@ -145,13 +145,13 @@ * public java.math.BigDecimal price; * } * - * <!-- Example: XML schema definition --> - * <xs:element name="PriceElement" type="USPrice"/> - * <xs:complexType name="USPrice"> - * <xs:sequence> - * <xs:element name="price" type="xs:decimal"/> - * </sequence> - * </xs:complexType> + * <!-- Example: XML schema definition --> + * <xs:element name="PriceElement" type="USPrice"/> + * <xs:complexType name="USPrice"> + * <xs:sequence> + * <xs:element name="price" type="xs:decimal"/> + * </sequence> + * </xs:complexType> * * * @author Sekhar Vajjhala, Sun Microsystems, Inc.