* During deserialization, any of these JSON structures will be valid * and correctly mapped to the MEDIUM enum value: {"size": "m"}, {"size": "medium"}, or {"size": "M"}. - * @since 2.9 */ @Target({ElementType.ANNOTATION_TYPE, // for combo-annotations ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER// for properties (field, setter, ctor param) diff --git a/src/main/java/com/fasterxml/jackson/annotation/JsonAnyGetter.java b/src/main/java/com/fasterxml/jackson/annotation/JsonAnyGetter.java index 4a7d4972..8fc34ed7 100644 --- a/src/main/java/com/fasterxml/jackson/annotation/JsonAnyGetter.java +++ b/src/main/java/com/fasterxml/jackson/annotation/JsonAnyGetter.java @@ -34,8 +34,6 @@ * * @return True if annotation is enabled (normal case); false if it is to * be ignored (only useful for mix-in annotations to "mask" annotation - * - * @since 2.9 */ boolean enabled() default true; } diff --git a/src/main/java/com/fasterxml/jackson/annotation/JsonAnySetter.java b/src/main/java/com/fasterxml/jackson/annotation/JsonAnySetter.java index 49472a3a..622d8f63 100644 --- a/src/main/java/com/fasterxml/jackson/annotation/JsonAnySetter.java +++ b/src/main/java/com/fasterxml/jackson/annotation/JsonAnySetter.java @@ -12,7 +12,7 @@ * to set) or a field (of type {@link java.util.Map} or POJO) - * to be used as a "fallback" handler * for all otherwise unrecognized properties found from JSON content. - * It is similar to {@code javax.xml.bind.annotation.XmlAnyElement} + * It is similar to JAXB {@code javax.xml.bind.annotation.XmlAnyElement} annotation * in behavior; and can only be used to denote a single property * per type. *
@@ -39,8 +39,6 @@
*
* @return True if annotation is enabled (normal case); false if it is to
* be ignored (only useful for mix-in annotations to "mask" annotation)
- *
- * @since 2.9
*/
boolean enabled() default true;
}
diff --git a/src/main/java/com/fasterxml/jackson/annotation/JsonClassDescription.java b/src/main/java/com/fasterxml/jackson/annotation/JsonClassDescription.java
index 9dfe197d..077b0742 100644
--- a/src/main/java/com/fasterxml/jackson/annotation/JsonClassDescription.java
+++ b/src/main/java/com/fasterxml/jackson/annotation/JsonClassDescription.java
@@ -11,8 +11,6 @@
* type (class).
* Currently used to populate the description field in generated JSON
* Schemas.
- *
- * @since 2.7
*/
@Target({ElementType.ANNOTATION_TYPE, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
diff --git a/src/main/java/com/fasterxml/jackson/annotation/JsonCreator.java b/src/main/java/com/fasterxml/jackson/annotation/JsonCreator.java
index 5ce9e044..9494ecd4 100644
--- a/src/main/java/com/fasterxml/jackson/annotation/JsonCreator.java
+++ b/src/main/java/com/fasterxml/jackson/annotation/JsonCreator.java
@@ -58,15 +58,11 @@
* heuristics for choosing mode to use.
*
* @return Mode to use.
- *
- * @since 2.5
*/
public Mode mode() default Mode.DEFAULT;
/**
* Enumeration of possible {@link #mode} values available.
- *
- * @since 2.5
*/
public enum Mode {
/**
diff --git a/src/main/java/com/fasterxml/jackson/annotation/JsonFormat.java b/src/main/java/com/fasterxml/jackson/annotation/JsonFormat.java
index 9eb96bfd..a1cfe6cc 100644
--- a/src/main/java/com/fasterxml/jackson/annotation/JsonFormat.java
+++ b/src/main/java/com/fasterxml/jackson/annotation/JsonFormat.java
@@ -47,8 +47,6 @@
* will not work as per-property annotation.
*
*
- *
- * @since 2.0
*/
@Target({ElementType.ANNOTATION_TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER,
ElementType.TYPE})
@@ -116,8 +114,6 @@
* Note that underlying default setting depends on datatype (or more precisely
* deserializer for it): for most date/time types, default is for leniency
* to be enabled.
- *
- * @since 2.9
*/
public OptBoolean lenient() default OptBoolean.DEFAULT;
@@ -125,8 +121,6 @@
* Set of {@link JsonFormat.Feature}s to explicitly enable with respect
* to handling of annotated property. This will have precedence over possible
* global configuration.
- *
- * @since 2.6
*/
public JsonFormat.Feature[] with() default { };
@@ -134,8 +128,6 @@
* Set of {@link JsonFormat.Feature}s to explicitly disable with respect
* to handling of annotated property. This will have precedence over possible
* global configuration.
- *
- * @since 2.6
*/
public JsonFormat.Feature[] without() default { };
@@ -153,6 +145,7 @@
public enum Shape
{
// // // Concrete physical shapes, scalars
+
/**
* Value that indicates that Binary type (native, if format supports it;
* encoding using Base64 if only textual types supported) should be used.
@@ -224,8 +217,6 @@ public enum Shape
* for Java numbers.
* Note that this is different from {@link Shape#ANY} in that this is actual
* explicit choice that overrides possible default settings.
- *
- * @since 2.8
*/
NATURAL,
@@ -234,10 +225,9 @@ public enum Shape
* handling as POJO, where applicable. Mostly makes difference at Java Object level
* when distinguishing handling between {@link java.util.Map} and POJO types.
*
- * @since 2.20
+ * @since 3.0
*/
POJO,
-
;
public boolean isNumeric() {
@@ -269,8 +259,6 @@ public static boolean isStructured(Shape shapeOrNull) {
* takes the format setting into account. If not, please file an issue
* for adding support via issue tracker for package that has handlers
* (if you know which one; if not, just use `jackson-databind`).
- *
- * @since 2.6
*/
public enum Feature {
/**
@@ -322,8 +310,6 @@ public enum Feature {
* which allows case-sensitive matching of (some) property values, such
* as {@code Enum}s.
* Only affects deserialization, has no effect on serialization.
- *
- * @since 2.10
*/
ACCEPT_CASE_INSENSITIVE_VALUES,
@@ -363,8 +349,6 @@ public enum Feature {
* {@link java.util.Date} and {@link java.util.Calendar}), this setting is only
* applicable to
* Default value is {@link SimpleObjectIdResolver}
- *
- * @since 2.4
*/
public Class extends ObjectIdResolver> resolver() default SimpleObjectIdResolver.class;
diff --git a/src/main/java/com/fasterxml/jackson/annotation/JsonIdentityReference.java b/src/main/java/com/fasterxml/jackson/annotation/JsonIdentityReference.java
index 00d2d8ff..5735515e 100644
--- a/src/main/java/com/fasterxml/jackson/annotation/JsonIdentityReference.java
+++ b/src/main/java/com/fasterxml/jackson/annotation/JsonIdentityReference.java
@@ -11,8 +11,6 @@
* The main use case is that of enforcing use of Object Id even for the first
* time an Object is referenced, instead of first instance being serialized
* as full POJO.
- *
- * @since 2.1
*/
@Target({ElementType.ANNOTATION_TYPE, ElementType.TYPE,
ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER})
@@ -28,8 +26,6 @@
* Note that if value of 'true' is used, deserialization may require
* additional contextual information, and possibly using a custom
* id resolver -- the default handling may not be sufficient.
- *
- * @since 2.1
*/
public boolean alwaysAsId() default false;
}
diff --git a/src/main/java/com/fasterxml/jackson/annotation/JsonIgnoreProperties.java b/src/main/java/com/fasterxml/jackson/annotation/JsonIgnoreProperties.java
index ab219c39..25707549 100644
--- a/src/main/java/com/fasterxml/jackson/annotation/JsonIgnoreProperties.java
+++ b/src/main/java/com/fasterxml/jackson/annotation/JsonIgnoreProperties.java
@@ -27,7 +27,7 @@
* per-property annotation.
*/
@Target({ElementType.ANNOTATION_TYPE, ElementType.TYPE,
- ElementType.METHOD, ElementType.CONSTRUCTOR, ElementType.FIELD})
+ ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@JacksonAnnotation
public @interface JsonIgnoreProperties
@@ -67,8 +67,6 @@
*
* @return True if getters should be allowed (i.e. NOT ignored); false if getters
* are to be ignored
- *
- * @since 2.6
*/
public boolean allowGetters() default false;
@@ -87,22 +85,19 @@
*
* @return True if setters should be allowed (i.e. NOT ignored); false if setters
* are to be ignored
- * @since 2.6
*/
public boolean allowSetters() default false;
/*
- /**********************************************************
+ /**********************************************************************
/* Value class used to enclose information, allow for
/* merging of layered configuration settings.
- /**********************************************************
+ /**********************************************************************
*/
/**
* Helper class used to contain information from a single {@link JsonIgnoreProperties}
* annotation, as well as to provide possible overrides from non-annotation sources.
- *
- * @since 2.8
*/
public static class Value
implements JacksonAnnotationValue
* In addition to `Map`s, `content` concept is also supported for referential
* types (like {@link java.util.concurrent.atomic.AtomicReference}).
- * Note that `content` is NOT currently (as of Jackson 2.9) supported for
- * arrays or {@link java.util.Collection}s, but supported may be added in
- * future versions.
- *
- * @since 2.0
+ *
- * NOTE: the filter will be called for each non-{@code null} value,
- * but handling of {@code null} value differs: up to Jackson 2.13, call
- * was only made once, but with 2.14 and later filter will be called
- * once for each {@code null} value too.
- *
- * @since 2.9
+ * NOTE: the filter will be called for every value, including {@code null}
+ * values.
*/
CUSTOM,
@@ -237,8 +227,6 @@ public enum Include
* for a property this would use defaults for the class that contains
* property, if any defined; and if none defined for that, then
* global serialization inclusion details.
- *
- * @since 2.6
*/
USE_DEFAULTS
;
@@ -253,11 +241,9 @@ public enum Include
/**
* Helper class used to contain information from a single {@link JsonInclude}
* annotation.
- *
- * @since 2.6
*/
public static class Value
- implements JacksonAnnotationValue
* Default value is {@link OptBoolean#TRUE}, that is, merging is enabled.
- *
- * @since 2.9
*/
@Target({ElementType.ANNOTATION_TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
diff --git a/src/main/java/com/fasterxml/jackson/annotation/JsonProperty.java b/src/main/java/com/fasterxml/jackson/annotation/JsonProperty.java
index 10ef73eb..61221d3b 100644
--- a/src/main/java/com/fasterxml/jackson/annotation/JsonProperty.java
+++ b/src/main/java/com/fasterxml/jackson/annotation/JsonProperty.java
@@ -30,7 +30,7 @@
* since it would associate same annotation for all fields, leading to name
* collision.
*
- * Starting with Jackson 2.6 this annotation may also be
+ * This annotation may also be
* used to change serialization of {@code Enum} like so:
*
- * Starting with Jackson 2.12 it is also possible to specify {@code namespace}
+ * It is also possible to specify {@code namespace}
* of property: this property is only used by certain format backends (most
* notably XML).
*/
@@ -57,8 +56,6 @@ public enum MyEnum {
/**
* 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 = "";
@@ -66,8 +63,6 @@ public enum MyEnum {
* Marker value used to indicate that no index has been specified.
* Used as the default value as annotations do not allow "missing"
* values.
- *
- * @since 2.4
*/
public final static int INDEX_UNKNOWN = -1;
@@ -86,18 +81,14 @@ public enum MyEnum {
* Optional namespace to use with data formats that support such
* concept (specifically XML); if so, used with {@link #value} to
* construct fully-qualified name.
- *
- * @since 2.12
*/
String namespace() default "";
/**
- * Property similar to {@link #isRequired}, but one that only
- * allows two values ({@code true} and {@code false}), defaulting
- * to {@code false}. It also has lower precedence than {@link #isRequired}
- * in cases where both are specified.
- *
- * @since 2.0
+ * Property similar to {@link #isRequired} but one that has lower precedence
+ * and where only value of {@code true} has effect (if and only if
+ * {@link #isRequired} has value of {@code OptBoolean.DEFAULT}):
+ * specifying of value {@code false} basically means "use default settings".
*/
boolean required() default false;
@@ -115,7 +106,7 @@ public enum MyEnum {
* level settings (some modules may specify default "required-ness" for certain
* kinds of properties).
*
- * Note that as of 2.19, possible validation is only done for Creator
+ * Note that as of 3.0, possible validation is only done for Creator
* Properties, to ensure existence of property value in JSON:
* for other properties (ones injected using a setter or mutable
* field), no validation is performed. Support for those cases
@@ -132,11 +123,9 @@ public enum MyEnum {
* validation of {@code required} properties occurs before the application of
* secondary sources.
*
- * NOTE: as of Jackson 2.19, the older property, {@link #required()},
+ * NOTE: the older property, {@link #required()},
* may still be used, but will have lower precedence than this annotation --
* basically it is only considered if this property has value {@code OptBoolean.DEFAULT}.
- *
- * @since 2.19
*/
OptBoolean isRequired() default OptBoolean.DEFAULT;
@@ -145,8 +134,6 @@ public enum MyEnum {
* to other properties specified for the Object). This index
* is typically used by binary formats, but may also be useful
* for schema languages and other tools.
- *
- * @since 2.4
*/
int index() default INDEX_UNKNOWN;
@@ -159,10 +146,7 @@ public enum MyEnum {
* value through bean property introspection.
*
* It is possible that in future this annotation could be used for value
- * defaulting, and especially for default values of Creator properties,
- * since they support {@link #required()} in 2.6 and above.
- *
- * @since 2.5
+ * defaulting.
*/
String defaultValue() default "";
@@ -175,8 +159,6 @@ public enum MyEnum {
*
* Default value os {@link Access#AUTO} which means that access is determined
* solely based on visibility and other annotations.
- *
- * @since 2.6
*/
Access access() default Access.AUTO;
@@ -192,8 +174,6 @@ public enum MyEnum {
* has precedence over this property.
* This annotation property is, however, preferred over use of "split"
* {@link JsonIgnore}/
- * NOTE: annotation is allowed for properties, starting with 2.4, mostly to support
+ * NOTE: annotation is allowed for properties mostly to support
* alphabetic ordering of {@link java.util.Map} entries.
*/
@Target({ElementType.ANNOTATION_TYPE, ElementType.TYPE,
- ElementType.METHOD, ElementType.CONSTRUCTOR, ElementType.FIELD})
+ ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@JacksonAnnotation
public @interface JsonPropertyOrder
diff --git a/src/main/java/com/fasterxml/jackson/annotation/JsonRootName.java b/src/main/java/com/fasterxml/jackson/annotation/JsonRootName.java
index 103d0bee..45e5ba08 100644
--- a/src/main/java/com/fasterxml/jackson/annotation/JsonRootName.java
+++ b/src/main/java/com/fasterxml/jackson/annotation/JsonRootName.java
@@ -6,7 +6,7 @@
import java.lang.annotation.Target;
/**
- * Annotation similar to {@code javax.xml.bind.annotation.XmlRootElement},
+ * Annotation similar to JAXB {@code javax.xml.bind.annotation.XmlRootElement},
* used to indicate name to use for root-level wrapping, if wrapping is
* enabled. Annotation itself does not indicate that wrapping should
* be used; but if it is, the name used for serialization should be the
@@ -28,8 +28,6 @@
* Optional namespace to use with data formats that support such
* concept (specifically XML); if so, used with {@link #value} to
* construct fully-qualified name.
- *
- * @since 2.4
*/
public String namespace() default "";
@@ -41,7 +39,6 @@
* Note that value of
* NOTE: This setting is specific to this type and will always override
* the global configuration of {@code MapperFeature.REQUIRE_TYPE_ID_FOR_SUBTYPES}.
- *
- * @since 2.16
*/
public OptBoolean requireTypeIdForSubtypes() default OptBoolean.DEFAULT;
@@ -512,14 +482,8 @@ public String toString() {
@Override
public int hashCode() {
- int hashCode = 1;
- hashCode = 31 * hashCode + (_idType != null ? _idType.hashCode() : 0);
- hashCode = 31 * hashCode + (_inclusionType != null ? _inclusionType.hashCode() : 0);
- hashCode = 31 * hashCode + (_propertyName != null ? _propertyName.hashCode() : 0);
- hashCode = 31 * hashCode + (_defaultImpl != null ? _defaultImpl.hashCode() : 0);
- hashCode = 31 * hashCode + (_requireTypeIdForSubtypes ? 11 : -17);
- hashCode = 31 * hashCode + (_idVisible ? 11 : -17);
- return hashCode;
+ return Objects.hash(_idType, _inclusionType, _propertyName, _defaultImpl, _requireTypeIdForSubtypes)
+ + (_idVisible ? 11 : -17);
}
@Override
@@ -536,20 +500,9 @@ private static boolean _equals(Value a, Value b)
&& (a._inclusionType == b._inclusionType)
&& (a._defaultImpl == b._defaultImpl)
&& (a._idVisible == b._idVisible)
- && _equal(a._propertyName, b._propertyName)
- && _equal(a._requireTypeIdForSubtypes, b._requireTypeIdForSubtypes)
+ && Objects.equals(a._propertyName, b._propertyName)
+ && Objects.equals(a._requireTypeIdForSubtypes, b._requireTypeIdForSubtypes)
;
}
-
- private static
* Default implementation returns
@@ -191,8 +191,6 @@ public boolean canUseFor(ObjectIdGenerator> gen) {
* keep track of id-to-Object mapping. Generation also works, although if
* UUIDs are always used, {@link UUIDGenerator} is a better match as it
* will also validate ids being used.
- *
- * @since 2.7
*/
public final static class StringIdGenerator extends BaseJoda and Java 8 date/time values,
* but not to java.util.Date or java.util.Calendar.
- *
- * @since 2.8
*/
ADJUST_DATES_TO_CONTEXT_TIME_ZONE
}
@@ -372,8 +356,6 @@ public enum Feature {
/**
* Helper class that encapsulates information equivalent to {@link java.lang.Boolean}
* valued {@link java.util.EnumMap}.
- *
- * @since 2.6
*/
public static class Features
{
@@ -487,7 +469,7 @@ public boolean equals(Object o) {
* annotation.
*/
public static class Value
- implements JacksonAnnotationValue
+ * As of Jackson 3.1.0, {@link #content()} also supports {@link java.util.Collection}'s
+ * when {@code tools.jackson.databind.SerializationFeature#APPLY_JSON_INCLUDE_FOR_COLLECTIONS}
+ * feature is enabled --disabled by default for backward-compatibility. (see [databind#5369] for more detail)
+ *
+ * Note that `content` is NOT currently (as of Jackson 3.1.0) supported for
+ * arrays, but supported may be added in future versions.
*/
@Target({ElementType.ANNOTATION_TYPE, ElementType.METHOD, ElementType.FIELD,
ElementType.TYPE, ElementType.PARAMETER})
@@ -57,7 +59,7 @@
*
* @return Inclusion rule for value itself
*/
- public Include value() default Include.ALWAYS;
+ public Include value() default Include.USE_DEFAULTS;
/**
* Inclusion rule to use for entries ("content") of annotated
@@ -66,10 +68,8 @@
* defaults to {@link Include#ALWAYS}.
*
* @return Inclusion rule for content (elements, values of structured types)
- *
- * @since 2.5
*/
- public Include content() default Include.ALWAYS;
+ public Include content() default Include.USE_DEFAULTS;
/**
* Specifies type of "Filter Object" to use in case
@@ -82,8 +82,6 @@
* Filter's {@code equals(value)} method: if it returns {@code true}
* value is NOT included (it is "filtered out"); if {@code false} value
* IS included ("not filtered out").
- *
- * @since 2.9
*/
public Class> valueFilter() default Void.class;
@@ -98,8 +96,6 @@
* Filter's {@code equals(value)} method: if it returns {@code true}
* content value is NOT included (it is "filtered out"); if {@code false} content value
* IS included ("not filtered out").
- *
- * @since 2.9
*/
public Class> contentFilter() default Void.class;
@@ -138,8 +134,6 @@ public enum Include
* that would not deference to a non-null value.
*
* This option is mostly used to work with "Optional"s (Java 8, Guava).
- *
- * @since 2.6
*/
NON_ABSENT,
@@ -222,12 +216,8 @@ public enum Include
* to serialize; if it returns {@code true} value is excluded
* (that is, filtered out); if {@code false} value is included.
*value as ALWAYS (if filter null)
* content as ALWAYS (if filter null)
* Object have "updating reader" operations.
*
public enum MyEnum {
@@ -43,9 +43,8 @@ public enum MyEnum {
* NOTE: for {@code Enum}s, empty String is a valid value (and
* missing {@code value} is taken as empty String), unlike for regular
* properties, and does NOT mean "use default Enum name".
- * (handling fixed in Jackson 2.19)
*JsonProperty combination.
- *
- * @since 2.6
*/
public enum Access
{
diff --git a/src/main/java/com/fasterxml/jackson/annotation/JsonPropertyDescription.java b/src/main/java/com/fasterxml/jackson/annotation/JsonPropertyDescription.java
index 5ed78a72..ba5c7997 100644
--- a/src/main/java/com/fasterxml/jackson/annotation/JsonPropertyDescription.java
+++ b/src/main/java/com/fasterxml/jackson/annotation/JsonPropertyDescription.java
@@ -7,16 +7,12 @@
import java.lang.annotation.Target;
/**
- * Annotation used to define a human-readable description for a logical
- * property.
- * Currently used to populate the description field in generated JSON
- * Schemas.
- *
- * @since 2.3
+ * Annotation used to define a human-readable description for a logical property.
+ * Currently used to populate the description field in generated JSON Schemas.
*/
@Target({ElementType.ANNOTATION_TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
-@Documented // since 2.6
+@Documented
@JacksonAnnotation
public @interface JsonPropertyDescription
{
diff --git a/src/main/java/com/fasterxml/jackson/annotation/JsonPropertyOrder.java b/src/main/java/com/fasterxml/jackson/annotation/JsonPropertyOrder.java
index e32e238b..b5289d69 100644
--- a/src/main/java/com/fasterxml/jackson/annotation/JsonPropertyOrder.java
+++ b/src/main/java/com/fasterxml/jackson/annotation/JsonPropertyOrder.java
@@ -26,11 +26,11 @@
* handling there is no effect, but for other supported data types (or structural
* conventions) there may be.
*false is taken to mean "use defaults",
* and will not block use of wrapper if use is indicated by global features.
*
- * @since 2.4
public boolean alwaysWrap() default false;
*/
}
diff --git a/src/main/java/com/fasterxml/jackson/annotation/JsonSetter.java b/src/main/java/com/fasterxml/jackson/annotation/JsonSetter.java
index a0fb5bd5..b93ae0e0 100644
--- a/src/main/java/com/fasterxml/jackson/annotation/JsonSetter.java
+++ b/src/main/java/com/fasterxml/jackson/annotation/JsonSetter.java
@@ -56,8 +56,6 @@
/**
* Helper class used to contain information from a single {@link JsonSetter}
* annotation, as well as to provide possible overrides from non-annotation sources.
- *
- * @since 2.9
*/
public static class Value
implements JacksonAnnotationValue
*
*/
@@ -322,28 +313,9 @@ public enum As {
* Default value is false, meaning that Jackson handles and removes
* the type identifier from JSON content that is passed to
* com.fasterxml.jackson.databind.annotation.NoClass is also allowed
- * for such usage.
* JsonDeserializer.
- *
- * @since 2.0
*/
public boolean visible() default false;
- /*
- /**********************************************************
- /* Helper classes
- /**********************************************************
- */
-
- /**
- * This marker class that is only to be used with defaultImpl
- * annotation property, to indicate that there is no default implementation
- * specified.
- *
- * @deprecated Since 2.5, use any Annotation type (such as {@link JsonTypeInfo}),
- * if such behavior is needed; this is rarely necessary.
- */
- @Deprecated // since 2.5
- public abstract static class None {}
-
/**
* Specifies whether the type ID should be strictly required during polymorphic
* deserialization of its subtypes.
@@ -357,8 +329,6 @@ public abstract static class None {}
* false, so needs to be overridden
* by Object-producing generators.
- *
- * @since 2.5
*/
public boolean maySerializeAsObject() {
return false;
@@ -59,8 +57,6 @@ public boolean maySerializeAsObject() {
* @param parser Parser that points to property name, in case generator needs
* further verification (note: untyped, because JsonParser is defined
* in `jackson-core`, and this package does not depend on it).
- *
- * @since 2.5
*/
public boolean isValidReferencePropertyName(String name, Object parser) {
return false;
diff --git a/src/main/java/com/fasterxml/jackson/annotation/ObjectIdGenerators.java b/src/main/java/com/fasterxml/jackson/annotation/ObjectIdGenerators.java
index ceea44a2..bd3cece8 100644
--- a/src/main/java/com/fasterxml/jackson/annotation/ObjectIdGenerators.java
+++ b/src/main/java/com/fasterxml/jackson/annotation/ObjectIdGenerators.java
@@ -7,7 +7,7 @@
*
*
*