--- old/src/java.xml.bind/share/classes/javax/xml/bind/annotation/XmlType.java 2015-09-19 13:15:49.060861817 +0300 +++ new/src/java.xml.bind/share/classes/javax/xml/bind/annotation/XmlType.java 2015-09-19 13:15:48.924861142 +0300 @@ -35,7 +35,7 @@ * Maps a class or an enum type to a XML Schema type. * *
Usage
- *The @XmlType annnotation can be used with the following program + *
The {@code @XmlType} annnotation can be used with the following program * elements: *
To be mapped, a class must either have a public no-arg * constructor or a static no-arg factory method. The static factory - * method can be specified in factoryMethod() and - * factoryClass() annotation elements. The static factory + * method can be specified in {@code factoryMethod()} and + * {@code factoryClass()} annotation elements. The static factory * method or the no-arg constructor is used during unmarshalling to * create an instance of this class. If both are present, the static * factory method overrides the no-arg constructor. @@ -64,7 +64,7 @@ * mapping of JavaBean properties and fields contained within the * class. The schema type to which the class is mapped can either be * named or anonymous. A class can be mapped to an anonymous schema - * type by annotating the class with @XmlType(name=""). + * type by annotating the class with {@code @XmlType(name="")}. *
* Either a global element, local element or a local attribute can be * associated with an anonymous type as follows: @@ -84,29 +84,29 @@ *
* Mapping class to XML Schema simple type *
* A class can be mapped to a XML Schema simple type using the - * @XmlValue annotation. For additional details and examples, + * {@code @XmlValue} annotation. For additional details and examples, * see @{@link XmlValue} annotation type. *
* The following table shows the mapping of the class to a XML Schema @@ -114,8 +114,8 @@ *
@@ -156,7 +156,7 @@ ** @@ -164,7 +164,7 @@ *Class *X - *1 [@XmlValue property] {@literal &&} + *
[property]+ {@literal ->} attributes1 [{@code @XmlValue} property] {@literal &&} *
[property]+ {@literal ->} attributessimplecontent ** * @@ -176,8 +176,8 @@ * * An enum type maps to a XML schema simple type with enumeration * facets. The following annotation elements are ignored since they - * are not meaningful: propOrder() , factoryMethod() , - * factoryClass() . + * are not meaningful: {@code propOrder()} , {@code factoryMethod()} , + * {@code factoryClass()} . * *Class *X - *1 [@XmlValue property] {@literal &&} + *
no properties {@literal ->} attribute1 [{@code @XmlValue} property] {@literal &&} *
no properties {@literal ->} attribute* simpletype *Usage with other annotations
*This annotation can be used with the following annotations: @@ -406,7 +406,7 @@ *
All of the JavaBean properties being mapped to XML Schema elements * must be listed. *
A JavaBean property or field listed in propOrder must not - * be transient or annotated with @XmlTransient. + * be transient or annotated with {@code @XmlTransient}. *
The default ordering of JavaBean properties is determined * by @{@link XmlAccessorOrder}. */ @@ -423,18 +423,18 @@ * Class containing a no-arg factory method for creating an * instance of this class. The default is this class. * - *
If factoryClass is DEFAULT.class and - * factoryMethod is "", then there is no static factory + *
If {@code factoryClass} is DEFAULT.class and + * {@code factoryMethod} is "", then there is no static factory * method. * - *
If factoryClass is DEFAULT.class and - * factoryMethod is not "", then - * factoryMethod is the name of a static factory method + *
If {@code factoryClass} is DEFAULT.class and + * {@code factoryMethod} is not "", then + * {@code factoryMethod} is the name of a static factory method * in this class. * - *
If factoryClass is not DEFAULT.class, then - * factoryMethod must not be "" and must be the name of - * a static factory method specified in factoryClass. + *
If {@code factoryClass} is not DEFAULT.class, then + * {@code factoryMethod} must not be "" and must be the name of + * a static factory method specified in {@code factoryClass}. */ Class factoryClass() default DEFAULT.class; @@ -447,7 +447,7 @@ /** * Name of a no-arg factory method in the class specified in - * factoryClass factoryClass(). + * {@code factoryClass} factoryClass(). * */ String factoryMethod() default "";