Skip to content

Commit 2a73f08

Browse files
committed
Javadoc error fixes
1 parent 9a85c6f commit 2a73f08

File tree

7 files changed

+18
-18
lines changed

7 files changed

+18
-18
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ public AnnotatedMethod resolveSetterConflict(MapperConfig<?> config,
621621
* Method for getting a serializer definition on specified method
622622
* or field. Type of definition is either instance (of type
623623
* {@link JsonSerializer}) or Class (of type
624-
* <code>Class&lt;JsonSerializer></code>); if value of different
624+
* {@code Class<JsonSerializer>}; if value of different
625625
* type is returned, a runtime exception may be thrown by caller.
626626
*/
627627
public Object findSerializer(Annotated am) {
@@ -632,7 +632,7 @@ public Object findSerializer(Annotated am) {
632632
* Method for getting a serializer definition for keys of associated <code>Map</code> property.
633633
* Type of definition is either instance (of type
634634
* {@link JsonSerializer}) or Class (of type
635-
* <code>Class&lt;JsonSerializer></code>); if value of different
635+
* {@code Class<JsonSerializer>}); if value of different
636636
* type is returned, a runtime exception may be thrown by caller.
637637
*/
638638
public Object findKeySerializer(Annotated am) {
@@ -644,7 +644,7 @@ public Object findKeySerializer(Annotated am) {
644644
* associated <code>Collection</code>, <code>array</code> or <code>Map</code> property.
645645
* Type of definition is either instance (of type
646646
* {@link JsonSerializer}) or Class (of type
647-
* <code>Class&lt;JsonSerializer></code>); if value of different
647+
* {@code Class<JsonSerializer>}); if value of different
648648
* type is returned, a runtime exception may be thrown by caller.
649649
*/
650650
public Object findContentSerializer(Annotated am) {
@@ -1080,7 +1080,7 @@ public Enum<?> findDefaultEnumValue(Class<Enum<?>> enumCls) {
10801080
* or field.
10811081
* Type of definition is either instance (of type
10821082
* {@link JsonDeserializer}) or Class (of type
1083-
* <code>Class&lt;JsonDeserializer></code>); if value of different
1083+
* {@code Class<JsonDeserializer>}): if value of different
10841084
* type is returned, a runtime exception may be thrown by caller.
10851085
*/
10861086
public Object findDeserializer(Annotated am) {
@@ -1092,7 +1092,7 @@ public Object findDeserializer(Annotated am) {
10921092
* associated <code>Map</code> property.
10931093
* Type of definition is either instance (of type
10941094
* {@link JsonDeserializer}) or Class (of type
1095-
* <code>Class&lt;JsonDeserializer></code>); if value of different
1095+
* {@code Class<JsonDeserializer>}): if value of different
10961096
* type is returned, a runtime exception may be thrown by caller.
10971097
*/
10981098
public Object findKeyDeserializer(Annotated am) {
@@ -1105,7 +1105,7 @@ public Object findKeyDeserializer(Annotated am) {
11051105
* <code>Map</code> property.
11061106
* Type of definition is either instance (of type
11071107
* {@link JsonDeserializer}) or Class (of type
1108-
* <code>Class&lt;JsonDeserializer></code>); if value of different
1108+
* {@code Class<JsonDeserializer>}): if value of different
11091109
* type is returned, a runtime exception may be thrown by caller.
11101110
*/
11111111
public Object findContentDeserializer(Annotated am) {

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ public enum DeserializationFeature implements ConfigFeature
8484

8585
/**
8686
* Feature that determines whether JSON Array is mapped to
87-
* <code>Object[]</code> or <code>List&lt;Object></code> when binding
87+
* <code>Object[]</code> or {@code List<Object>} when binding
8888
* "untyped" objects (ones with nominal type of <code>java.lang.Object</code>).
89-
* If true, binds as <code>Object[]</code>; if false, as <code>List&lt;Object></code>.
89+
* If true, binds as <code>Object[]</code>; if false, as {@code List<Object>}.
9090
*<p>
9191
* Feature is disabled by default, meaning that JSON arrays are bound as
9292
* {@link java.util.List}s.
@@ -97,7 +97,7 @@ public enum DeserializationFeature implements ConfigFeature
9797
* Feature that determines standard deserialization mechanism used for
9898
* Enum values: if enabled, Enums are assumed to have been serialized using
9999
* return value of <code>Enum.toString()</code>;
100-
* if disabled, return value of <code>Enum.name()</code> is assumed to have been used.
100+
* if disabled, return value of {@code Enum.name()} is assumed to have been used.
101101
*<p>
102102
* Note: this feature should usually have same value
103103
* as {@link SerializationFeature#WRITE_ENUMS_USING_TO_STRING}.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public static interface SetupContext
161161
*<pre>
162162
* mapper.configOverride(java.util.Date.class)
163163
* .setFormat(JsonFormat.Value.forPattern("yyyy-MM-dd"));
164-
*<pre>
164+
*</pre>
165165
* to change the default format to use for properties of type
166166
* {@link java.util.Date} (possibly further overridden by per-property
167167
* annotations)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1505,13 +1505,13 @@ public void registerSubtypes(NamedType... types) {
15051505
* Accessor for getting a mutable configuration override object for
15061506
* given type, needed to add or change per-type overrides applied
15071507
* to properties of given type.
1508-
* Usage is through returned object by colling "setter" methods, which
1508+
* Usage is through returned object by calling "setter" methods, which
15091509
* directly modify override object and take effect directly.
15101510
* For example you can do
15111511
*<pre>
15121512
* mapper.configOverride(java.util.Date.class)
15131513
* .setFormat(JsonFormat.Value.forPattern("yyyy-MM-dd"));
1514-
*<pre>
1514+
*</pre>
15151515
* to change the default format to use for properties of type
15161516
* {@link java.util.Date} (possibly further overridden by per-property
15171517
* annotations)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* Deserializer for {@link EnumMap} values.
1313
* <p>
1414
* Note: casting within this class is all messed up -- just could not figure out a way
15-
* to properly deal with recursive definition of "EnumMap&lt;K extends Enum&lt;K>, V>
15+
* to properly deal with recursive definition of {@code EnumMap<K extends Enum<K>, V>}
1616
*/
1717
@SuppressWarnings({ "unchecked", "rawtypes" })
1818
public class EnumMapDeserializer

src/main/java/com/fasterxml/jackson/databind/node/ArrayNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ public ArrayNode addAll(Collection<? extends JsonNode> nodes)
305305
/**
306306
* Method for inserting specified child node as an element
307307
* of this Array. If index is 0 or less, it will be inserted as
308-
* the first element; if >= size(), appended at the end, and otherwise
308+
* the first element; {@code if >= size()}, appended at the end, and otherwise
309309
* inserted before existing element in specified index.
310310
* No exceptions are thrown for any index.
311311
*

src/main/java/com/fasterxml/jackson/databind/type/TypeFactory.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ public JavaType uncheckedSimpleType(Class<?> cls) {
865865
/**
866866
* Factory method for constructing {@link JavaType} that
867867
* represents a parameterized type. For example, to represent
868-
* type <code>List&lt;Set&lt;Integer>></code>, you could
868+
* type {@code List<Set<Integer>>}, you could
869869
* call
870870
*<pre>
871871
* JavaType inner = TypeFactory.constructParametrizedType(Set.class, Set.class, Integer.class);
@@ -874,7 +874,7 @@ public JavaType uncheckedSimpleType(Class<?> cls) {
874874
*<p>
875875
* The reason for first two arguments to be separate is that parameterization may
876876
* apply to a super-type. For example, if generic type was instead to be
877-
* constructed for <code>ArrayList&lt;Integer></code>, the usual call would be:
877+
* constructed for {@code ArrayList<Integer>}, the usual call would be:
878878
*<pre>
879879
* TypeFactory.constructParametrizedType(ArrayList.class, List.class, Integer.class);
880880
*</pre>
@@ -901,7 +901,7 @@ public JavaType constructParametricType(Class<?> parametrized, Class<?>... param
901901
/**
902902
* Factory method for constructing {@link JavaType} that
903903
* represents a parameterized type. For example, to represent
904-
* type <code>List&lt;Set&lt;Integer>></code>, you could
904+
* type {@code List<Set<Integer>>}, you could
905905
* call
906906
*<pre>
907907
* JavaType inner = TypeFactory.constructParametrizedType(Set.class, Set.class, Integer.class);
@@ -910,7 +910,7 @@ public JavaType constructParametricType(Class<?> parametrized, Class<?>... param
910910
*<p>
911911
* The reason for first two arguments to be separate is that parameterization may
912912
* apply to a super-type. For example, if generic type was instead to be
913-
* constructed for <code>ArrayList&lt;Integer></code>, the usual call would be:
913+
* constructed for {@code ArrayList<Integer>}, the usual call would be:
914914
*<pre>
915915
* TypeFactory.constructParametrizedType(ArrayList.class, List.class, Integer.class);
916916
*</pre>

0 commit comments

Comments
 (0)