Skip to content
This repository has been archived by the owner on Feb 15, 2019. It is now read-only.

Commit

Permalink
Javadoc: Property order behavoiur clarified
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Kornilov <dmitry.kornilov@oracle.com>
  • Loading branch information
m0mus committed May 11, 2017
1 parent 1c65022 commit d246255
Showing 1 changed file with 7 additions and 4 deletions.
Expand Up @@ -46,10 +46,12 @@
import java.lang.annotation.Target;

/**
* <p>Specifies order in which fields (or JavaBean properties) will be serialized.</p>
* <p>Specifies order in which properties are serialized.</p>
*
* <p>Partial mapping can also be specified. In that case, the order of properties not specified in partial
* mapping is not defined and thus not guaranteed.</p>
* <p>Partial mapping can also be specified. In that case, properties included
* in annotation declaration will be serialized first (in defined order), followed
* by any properties not included in the definition. The order of properties not
* included in the definition is not guaranteed.</p>
*
* @since JSON Binding 1.0
*/
Expand All @@ -59,7 +61,8 @@
public @interface JsonbPropertyOrder {

/**
* Order in which fields (or JavaBean properties) will be serialized.
* Order in which properties are serialized. Names must correspond to original
* names defined in Java class before any customization applied.
*/
String[] value();
}

0 comments on commit d246255

Please sign in to comment.