Skip to content

Commit 19c9dc7

Browse files
committed
Javadoc cleanup to remove obsolete references to Jackson 1.x versions
1 parent e6ff003 commit 19c9dc7

13 files changed

+27
-38
lines changed

src/main/java/com/fasterxml/jackson/databind/AnnotationIntrospector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public static AnnotationIntrospector pair(AnnotationIntrospector a1, AnnotationI
111111

112112
/*
113113
/**********************************************************
114-
/* Access to possibly chained introspectors (1.7)
114+
/* Access to possibly chained introspectors
115115
/**********************************************************
116116
*/
117117

src/main/java/com/fasterxml/jackson/databind/annotation/JsonSerialize.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,7 @@ public enum Inclusion
222222
* <li>For Java arrays, empty arrays are ones with length of 0
223223
* </li>
224224
* <li>For Java {@link java.lang.String}s, <code>length()</code> is called,
225-
* and return value of 0 indicates empty String (note that <code>String.isEmpty()</code>
226-
* was added in Java 1.6 and as such can not be used by Jackson
225+
* and return value of 0 indicates empty String
227226
* </li>
228227
* </ul>
229228
* For other types, non-null values are to be included.

src/main/java/com/fasterxml/jackson/databind/deser/BasicDeserializerFactory.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,15 @@ public abstract class BasicDeserializerFactory
8080
_collectionFallbacks.put(SortedSet.class.getName(), TreeSet.class);
8181
_collectionFallbacks.put(Queue.class.getName(), LinkedList.class);
8282

83-
// then 1.6 types:
84-
/* 17-May-2013, tatu: [Issue#216] Should be fine to use straight Class references EXCEPT
85-
* that some godforsaken platforms (... looking at you, Android) do not
83+
// then JDK 1.6 types:
84+
/* 17-May-2013, tatu: [databind#216] Should be fine to use straight Class references EXCEPT
85+
* that some god-forsaken platforms (... looking at you, Android) do not
8686
* include these. So, use "soft" references...
8787
*/
8888
_collectionFallbacks.put("java.util.Deque", LinkedList.class);
8989
_collectionFallbacks.put("java.util.NavigableSet", TreeSet.class);
9090
}
91-
91+
9292
/*
9393
/**********************************************************
9494
/* Config
@@ -100,7 +100,7 @@ public abstract class BasicDeserializerFactory
100100
* factory), new version created via copy-constructor (fluent-style)
101101
*/
102102
protected final DeserializerFactoryConfig _factoryConfig;
103-
103+
104104
/*
105105
/**********************************************************
106106
/* Life cycle

src/main/java/com/fasterxml/jackson/databind/deser/BeanDeserializerFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public JsonDeserializer<Object> createBeanDeserializer(DeserializationContext ct
116116
* (defaulting, materialization)
117117
*/
118118
if (type.isAbstract()) {
119-
// [JACKSON-41] (v1.6): Let's make it possible to materialize abstract types.
119+
// Let's make it possible to materialize abstract types.
120120
JavaType concreteType = materializeAbstractType(ctxt, type, beanDesc);
121121
if (concreteType != null) {
122122
/* important: introspect actual implementation (abstract class or

src/main/java/com/fasterxml/jackson/databind/deser/std/NumberDeserializers.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public Boolean deserialize(JsonParser j, DeserializationContext ctxt) throws IOE
178178
return _parseBoolean(j, ctxt);
179179
}
180180

181-
// 1.6: since we can never have type info ("natural type"; String, Boolean, Integer, Double):
181+
// Since we can never have type info ("natural type"; String, Boolean, Integer, Double):
182182
// (is it an error to even call this version?)
183183
@Override
184184
public Boolean deserializeWithType(JsonParser p, DeserializationContext ctxt,
@@ -309,7 +309,7 @@ public Integer deserialize(JsonParser p, DeserializationContext ctxt) throws IOE
309309
return _parseInteger(p, ctxt);
310310
}
311311

312-
// 1.6: since we can never have type info ("natural type"; String, Boolean, Integer, Double):
312+
// Since we can never have type info ("natural type"; String, Boolean, Integer, Double):
313313
// (is it an error to even call this version?)
314314
@Override
315315
public Integer deserializeWithType(JsonParser p, DeserializationContext ctxt,
@@ -386,7 +386,7 @@ public Double deserialize(JsonParser jp, DeserializationContext ctxt) throws IOE
386386
return _parseDouble(jp, ctxt);
387387
}
388388

389-
// 1.6: since we can never have type info ("natural type"; String, Boolean, Integer, Double):
389+
// Since we can never have type info ("natural type"; String, Boolean, Integer, Double):
390390
// (is it an error to even call this version?)
391391
@Override
392392
public Double deserializeWithType(JsonParser jp, DeserializationContext ctxt,
@@ -400,7 +400,7 @@ public Double deserializeWithType(JsonParser jp, DeserializationContext ctxt,
400400
* For type <code>Number.class</code>, we can just rely on type
401401
* mappings that plain {@link JsonParser#getNumberValue} returns.
402402
*<p>
403-
* Since 1.5, there is one additional complication: some numeric
403+
* There is one additional complication: some numeric
404404
* types (specifically, int/Integer and double/Double) are "non-typed";
405405
* meaning that they will NEVER be output with type information.
406406
* But other numeric types may need such type information.

src/main/java/com/fasterxml/jackson/databind/deser/std/StdDeserializer.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -808,10 +808,9 @@ protected java.util.Date _parseDate(JsonParser jp, DeserializationContext ctxt)
808808
*/
809809
protected final static double parseDouble(String numStr) throws NumberFormatException
810810
{
811-
// [JACKSON-486]: avoid some nasty float representations... but should it be MIN_NORMAL or MIN_VALUE?
812-
// for now, MIN_VALUE, since MIN_NORMAL is JDK 1.6
811+
// avoid some nasty float representations... but should it be MIN_NORMAL or MIN_VALUE?
813812
if (NumberInput.NASTY_SMALL_DOUBLE.equals(numStr)) {
814-
return Double.MIN_VALUE;
813+
return Double.MIN_NORMAL; // since 2.7; was MIN_VALUE prior
815814
}
816815
return Double.parseDouble(numStr);
817816
}
@@ -937,7 +936,7 @@ protected Object _coerceIntegral(JsonParser p, DeserializationContext ctxt) thro
937936
*
938937
* @param type Type of property to deserialize
939938
* @param property Actual property object (field, method, constuctor parameter) used
940-
* for passing deserialized values; provided so deserializer can be contextualized if necessary (since 1.7)
939+
* for passing deserialized values; provided so deserializer can be contextualized if necessary
941940
*/
942941
protected JsonDeserializer<Object> findDeserializer(DeserializationContext ctxt,
943942
JavaType type, BeanProperty property)

src/main/java/com/fasterxml/jackson/databind/deser/std/StringDeserializer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public String deserialize(JsonParser jp, DeserializationContext ctxt) throws IOE
6262
throw ctxt.mappingException(_valueClass, curr);
6363
}
6464

65-
// 1.6: since we can never have type info ("natural type"; String, Boolean, Integer, Double):
65+
// Since we can never have type info ("natural type"; String, Boolean, Integer, Double):
6666
// (is it an error to even call this version?)
6767
@Override
6868
public String deserializeWithType(JsonParser jp, DeserializationContext ctxt, TypeDeserializer typeDeserializer) throws IOException {

src/main/java/com/fasterxml/jackson/databind/ext/OptionalHandlerFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class OptionalHandlerFactory implements java.io.Serializable
1818
{
1919
private static final long serialVersionUID = 1;
2020

21-
/* 1.6.1+ To make 2 main "optional" handler groups (javax.xml.stream)
21+
/* To make 2 main "optional" handler groups (javax.xml.stream)
2222
* more dynamic, we better only figure out handlers completely dynamically, if and
2323
* when they are needed. To do this we need to assume package prefixes.
2424
*/

src/main/java/com/fasterxml/jackson/databind/introspect/AnnotatedClass.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,8 +1068,8 @@ protected Method[] _findClassMethods(Class<?> cls)
10681068
try {
10691069
contextClass = loader.loadClass(cls.getName());
10701070
} catch (ClassNotFoundException e) {
1071-
// !!! TODO: 08-May-2015, tatu: Chain appropriately once we have JDK7 as baseline
1072-
//ex.addSuppressed(e); Not until 1.7
1071+
// !!! TODO: 08-May-2015, tatu: Chain appropriately once we have JDK 1.7/Java7 as baseline
1072+
//ex.addSuppressed(e); Not until Jackson 2.7
10731073
throw ex;
10741074
}
10751075
return contextClass.getDeclaredMethods(); // Cross fingers

src/main/java/com/fasterxml/jackson/databind/ser/BeanPropertyWriter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ protected BeanPropertyWriter(BeanPropertyWriter base, PropertyName name)
326326

327327
_serializer = base._serializer;
328328
_nullSerializer = base._nullSerializer;
329-
// one more thing: copy internal settings, if any (since 1.7)
329+
// one more thing: copy internal settings, if any
330330
if (base._internalSettings != null) {
331331
_internalSettings = new HashMap<Object,Object>(base._internalSettings);
332332
}

0 commit comments

Comments
 (0)