This is an automated email from the git hooks/post-receive script.

tjaalton pushed a commit to branch master
in repository jackson-annotations.

commit 7a7d8c9a245c14d0fccbbb7ac0438cdf9a50625d
Author: Tatu Saloranta <[email protected]>
Date:   Sun Sep 2 17:57:28 2012 -0700

    minor cleanup
---
 .../java/com/fasterxml/jackson/annotation/JsonProperty.java  | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/fasterxml/jackson/annotation/JsonProperty.java 
b/src/main/java/com/fasterxml/jackson/annotation/JsonProperty.java
index ca04f89..242c7b7 100644
--- a/src/main/java/com/fasterxml/jackson/annotation/JsonProperty.java
+++ b/src/main/java/com/fasterxml/jackson/annotation/JsonProperty.java
@@ -24,15 +24,23 @@ import java.lang.annotation.Target;
 public @interface JsonProperty
 {
     /**
+     * Special value that indicates that handlers should use the default
+     * name (derived from method or field name) for property.
+     * 
+     * @since 2.1
+     */
+    public final static String USE_DEFAULT_NAME = "";
+
+    /**
      * Defines name of the logical property, i.e. JSON object field
      * name to use for the property. If value is empty String (which is the
      * default), will try to use name of the field that is annotated.
      * Note that there is
      * <b>no default name available for constructor arguments</b>,
      * meaning that
-     * <b>Empty String is not a valid value for constructor arguments</b>
+     * <b>Empty String is not a valid value for constructor arguments</b>.
      */
-    String value() default "";
+    String value() default USE_DEFAULT_NAME;
 
     /**
      * Property that indicates whether a value (which may be explicit

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-java/jackson-annotations.git

_______________________________________________
pkg-java-commits mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits

Reply via email to