[jackson-annotations] 185/207: Deprecate JsonTypeInfo.None; should be possible to remove in 2.5; replaced by using `java.lang.Void.class` instead
Timo Aaltonen
tjaalton at moszumanska.debian.org
Sat Sep 6 13:55:53 UTC 2014
This is an automated email from the git hooks/post-receive script.
tjaalton pushed a commit to branch master
in repository jackson-annotations.
commit 5658a68012559c40dac0e2789ac458382e369f04
Author: Tatu Saloranta <tatu.saloranta at iki.fi>
Date: Tue May 20 10:08:39 2014 -0700
Deprecate JsonTypeInfo.None; should be possible to remove in 2.5; replaced by using `java.lang.Void.class` instead
---
src/main/java/com/fasterxml/jackson/annotation/JsonTypeInfo.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/main/java/com/fasterxml/jackson/annotation/JsonTypeInfo.java b/src/main/java/com/fasterxml/jackson/annotation/JsonTypeInfo.java
index c0c0aa1..d931a46 100644
--- a/src/main/java/com/fasterxml/jackson/annotation/JsonTypeInfo.java
+++ b/src/main/java/com/fasterxml/jackson/annotation/JsonTypeInfo.java
@@ -249,6 +249,8 @@ public @interface JsonTypeInfo
* <li><code>com.fasterxml.jackson.databind.annotation.NoClass</code> means that
* objects with unmappable (or missing) type are to be mapped to null references.
* </ul>
+ *
+ * TODO: In 2.5, change default to {@link java.lang.Void}
*/
public Class<?> defaultImpl() default None.class;
@@ -276,6 +278,9 @@ public @interface JsonTypeInfo
* This marker class that is only to be used with <code>defaultImpl</code>
* annotation property, to indicate that there is no default implementation
* specified.
+ *
+ * @deprecated Since 2.4, use {@link java.lang.Void} instead.
*/
+ @Deprecated
public abstract static class None { }
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jackson-annotations.git
More information about the pkg-java-commits
mailing list